Redirect problems...

M

Mattias Torsfred

Hi, I'm having problem with redirection. Case...

1. HTML with FORM (generated with perl)
2. I want to redirect user after filling out FORM and POST data.

I have tried with....

if ($ENV{'REQUEST_METHOD'} eq 'POST'){
print redirect('some.pl') #This will generate a new HTML page
}

....i want the user to fill out the FORM then get an "Thanks for...."
page that redirect him/her to for example an login page...

I will be pleased if any takes time to help me :)

//Mattias Torsfred
 
C

chris-usenet

Mattias Torsfred said:
Hi, I'm having problem with redirection. Case...
if ($ENV{'REQUEST_METHOD'} eq 'POST'){
print redirect('some.pl') #This will generate a new HTML page
}
I will be pleased if any takes time to help me :)

I presume you're using the CGI module on the basis that you're referencing
a redirect() function. So, "perldoc CGI" and search for the bit that
tells you how to use it properly.

Chris
 
M

Mattias Torsfred

Thanks Bernard, I will check that out...cheers //Mattias Torsfred

Bernard El-Hagin skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,251
Latest member
41Ki

Latest Threads

Top