Xeenslayer
03-18-2003, 08:02 PM
Hi all, I just got started with CGI. I started off with the tutorial on CGI here: http://www.htmlgoodies.com/beyond/placecgi.html
I then proceeded to download the files from here (http://www.htmlgoodies.com/beyond/placecgi.html#section2). I modified the CGI file to work on the server.
The script works, but I need some help on further customizing the file. The link to the HTML page is here (http://www.caesar3bsc.netfirms.com/gb.html).
After submission, the browser returns me to the CGI page. There is a link "Back" which sends me to my CGI directory. How can I change the script to change the Anchor link? This is the part of the code:
______________________________
}
sub thank_you {
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Thank You!</TITLE>\n";
print "</HEAD>\n";
print "<BODY BGCOLOR=#FFFFFF TEXT=#000000>\n";
print "<H1>Thank You!</H1>\n";
print "\n";
print "<P>\n";
print "<H3>Your feedback is greatly appreciated.<BR>\n";
print "Click here to go <A HREF=$ENV{'REFERRER'}>Back</A>.\n";
print "<P>\n";
print "</BODY>\n";
print "</HTML>\n";
exit(0);
}
______________________________
I tried changing the <A HREF=$ENV{'REFERRER'}> part to <A HREF=URI>. It doesn't seem to help.
Next, this question might sound stupid, but I have no idea where the feedback is sent to. How do I read what my visitors say?
I then proceeded to download the files from here (http://www.htmlgoodies.com/beyond/placecgi.html#section2). I modified the CGI file to work on the server.
The script works, but I need some help on further customizing the file. The link to the HTML page is here (http://www.caesar3bsc.netfirms.com/gb.html).
After submission, the browser returns me to the CGI page. There is a link "Back" which sends me to my CGI directory. How can I change the script to change the Anchor link? This is the part of the code:
______________________________
}
sub thank_you {
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Thank You!</TITLE>\n";
print "</HEAD>\n";
print "<BODY BGCOLOR=#FFFFFF TEXT=#000000>\n";
print "<H1>Thank You!</H1>\n";
print "\n";
print "<P>\n";
print "<H3>Your feedback is greatly appreciated.<BR>\n";
print "Click here to go <A HREF=$ENV{'REFERRER'}>Back</A>.\n";
print "<P>\n";
print "</BODY>\n";
print "</HTML>\n";
exit(0);
}
______________________________
I tried changing the <A HREF=$ENV{'REFERRER'}> part to <A HREF=URI>. It doesn't seem to help.
Next, this question might sound stupid, but I have no idea where the feedback is sent to. How do I read what my visitors say?