PERL/CGI question for y'all...

Entity

Lifer
Oct 11, 1999
10,090
0
0
I'm writing a simple script for delineating some text and emailing it (a simple address-update form). So far, I haven't had any problems with the script; however, when I try to write it so that it displays a new HTML page as thanks, I start to enter problems.

What I'd really like to do is redirect the page to a new page, entirely coded in HTML - something like after the CGI is finished running, it redirects the user to http://www.whatever.com. Unfortunately, I can't figure out how to do this in PERL, and my only other method of trying this - printing a webpage which uses SSI to include the page I'm loading, isn't working either (not sure why, but I assume it has to do with inappropriate use of quotation marks.

Here's my code (for the thank-you page). Can anyone suggest something that'll work for me?

print "Content-type: text/html\n\n";
print &quot;<!--#include virtual=&quot;/biostat/mainindex.shtml&quot; -->\n&quot;;
print &quot;<td width=590 valign=top>\n&quot;;
print &quot;<!--#include file=&quot;thanksmain.shtml&quot; -->\n&quot;;
print &quot;</td>\n&quot;;
print &quot;</tr>\n&quot;;
print &quot;</table>\n&quot;;
print &quot;</BODY>\n&quot;;
print &quot;</HTML>\n&quot;;
exit(0);
}

That was my terrible attempt at redirecting them to the other page using SSI. Any other suggestions would be much appreciated.

thanks,
Rob