[WEB4LIB] How to submit form and forward user to another page

Charles P. Hobbs transit at primenet.com
Mon Feb 22 19:15:09 EST 1999


On Mon, 22 Feb 1999, Donald Barclay wrote:

> Does anyone know of a more-or-less simple way to set up a web form so that
> when users fill out the form and click the "Submit" button they are
> automatically sent to some other webpage?

If you are using a CGI script in the "ACTION=" of your form, probably the
best way is to have the script return the following (and the following
text only):

Location: http://www.some.other.webpage.com
<blank line>

Again, other headers (such as the usual "Content-type: text/html"), etc.
are not used in this case.

Hope this helps.



More information about the Web4lib mailing list