Bob Showalter wrote:
Andrew Gaffney wrote:

I believe there is an HTTP status code that tells the browser that
the form was successfully submitted, but not to go anywhere. I don't
know what it is off the top of my head, but I think it would work in
this case.


Would that be 204 No Content?

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.5

I've never used that before. I wonder if the various browsers behave
properly when they get that?

I'd hope they would. It is part of the HTTP protocol. A script should just need to do:


<code to do something with data>
print "HTTP/1.1 204 No Content\r\n\r\n";

to make it work, I believe. I'm not that good with CGI.pm yet, so I can't remember the official CGI.pm way of returning something besides '200 OK'. Anyone else?

--
Andrew Gaffney


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to