CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
redirecting after form submission

 



andyweb
Deleted

Nov 2, 2000, 5:09 AM

Post #1 of 2 (463 views)
redirecting after form submission Can't Post

I am new to scripting and am using the formail script from Matt's archive. I have it up and running, but I would like to automatically send users back to a web page after they submit the form. Right now they are in no man's land and can't get back. Can anyone help?


sleuth
Enthusiast

Nov 1, 2000, 10:02 PM

Post #2 of 2 (463 views)
Re: redirecting after form submission [In reply to] Can't Post

 
Comment out the line

print "Content-type: text/html\n\n";

by putting a # in front of the whole line, and take out any print statements that print basic text or html to the page,

Then at the bottom of your script, add the line

print "Location:http://url.com/done.html\n\n";

Sleuth

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives