InterviewSolution
| 1. |
Can I Run A Cgi Script Without Returning A New Page To The Browser? |
|
Answer» Yes, but think carefully first: How are your readers going to know that their "submit" has succeeded? They may hit 'submit' MANY times! The correct solution according to the HTTP specification is to return HTTP status CODE 204. As an NPH script, this would be: #!/bin/sh Yes, but think carefully first: How are your readers going to know that their "submit" has succeeded? They may hit 'submit' many times! The correct solution according to the HTTP specification is to return HTTP status code 204. As an NPH script, this would be: #!/bin/sh |
|