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 "<!--#include virtual="/biostat/mainindex.shtml" -->\n";
print "<td width=590 valign=top>\n";
print "<!--#include file="thanksmain.shtml" -->\n";
print "</td>\n";
print "</tr>\n";
print "</table>\n";
print "</BODY>\n";
print "</HTML>\n";
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
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 "<!--#include virtual="/biostat/mainindex.shtml" -->\n";
print "<td width=590 valign=top>\n";
print "<!--#include file="thanksmain.shtml" -->\n";
print "</td>\n";
print "</tr>\n";
print "</table>\n";
print "</BODY>\n";
print "</HTML>\n";
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
