redirect
hello,
i am working on a cgi script, and i want to forward the user to a html page after the cgi script has executed. I can't find it in my book, and I am sure it is simple, as I have seen it before.
thanks for your help, you guys rule!
EDIT: Sorry, just so there is no confusion, i'm doing my cgi's in PERL
Pimpin like a pimp with an electrofied pimpin machine!
Darren posted this at 15:49 — 28th September 2001.
They have: 7 posts
Joined: Sep 2001
I think this one should works...
print "Location: $url\n\n";
but must be put in the header of the cgi scripts or otherwise won't work.
Mark Hensler posted this at 15:49 — 28th September 2001.
He has: 4,048 posts
Joined: Aug 2000
do not print anything before this line:
print "Location: http://your.domain.com/your/confirmation/page.html\n\n";
Note the double \n\n. Very important.
Mark Hensler
If there is no answer on Google, then there is no question.
Ken Elliott posted this at 17:49 — 28th September 2001.
They have: 358 posts
Joined: Jun 1999
Thanks guys, I understand perl very well, but since I tend to smoke alot, and not nasty tobacco. I tend to forget alot also, and I can always count on you guys to help me out of a jam. You guys rule.
Pimpin like a pimp with an electrofied pimpin machine!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.