in reply to Redirect page (newbie)

The redirect isn't working because you have already printed a webpage. When you redirect you must print the redirect header as the only output of the script and then exit with no other output. You should either print the form OR call the submit_parameters function.

Replies are listed 'Best First'.
Rea: Redirect page (newbie)
by baku (Scribe) on May 04, 2001 at 21:25 UTC

    Actually, you can (and, perhaps, "should") print a web page after a Redirect. The *original* reason was for ancient browsers which might not understand the redirection command. Nowadays, that's mostly limited to a few "dumb" robots and so forth, so the page will generally be ignored. The idea is that the HTML should say something like:


    Sorry, you're at the wrong place. Click me to get where you want to be.
      Some webservers send out their own headers for cgi. This problem bit me on a win32 based webserver once. You may want to telnet to port 80 and GET /path/to/your/script.pl and check what headers are returned.