How to display a html page after the original html page runs a perl script

S

Stu

I have an html page that does the following

<form action="Scripts/Standard.pl" method="post">
<input type="hidden" name="redirect"
value="/Inetpub/wwwroot/ThankYou.htm">


When the individual hits the submit button the original html page
calls a perl script (standard.pl) that parses the data to a file on my
server. When it is done, I wanted to have the ThankYou.htm page come
up but I only get a blank screen after the perl routine is completed.

Help, any idea? I thought this would work.
 
D

David Dorward

Stu said:
I have an html page that does the following

<form action="Scripts/Standard.pl" method="post">
<input type="hidden" name="redirect"
value="/Inetpub/wwwroot/ThankYou.htm">

When the individual hits the submit button the original html page
calls a perl script (standard.pl) that parses the data to a file on my
server. When it is done, I wanted to have the ThankYou.htm page come
up but I only get a blank screen after the perl routine is completed.
Help, any idea? I thought this would work.

You would probably need to edit your script to read the redirect parameter
and do something useful with it.
 
R

Rob McAninch

David Dorward said:
You would probably need to edit your script to read the
redirect parameter and do something useful with it.

Use the CGI module to parse the input. Store your new location
somewhere like $url. And then:

print "Location: $url\n\n";

Instead of printing a content-type header is if you were going to
write content to the browser.
 

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

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top