Discussion Locked

CGI-BIN

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My cgi is use for my feedback.html. When i click submit, it did sent to my e-mail address but the page is stuck on the cgi program.I want it to auto link to a , let say "thank.html".

What is the command or syntax?

5 replies

by nikki96

In the cgi code, you can output HTML. This is the normal way feedback is handled.

Make sure the script has

use CGI qw(:all);

and after the mail processing you can put something like...

print header;
print start_html("Form submitted.");print br();
print ("Thanks for contacting me!");
print end_html;

You can also put in links, stylesheets, etc if you like. Even javascript! Anything you want printed to the html page, including tags, can go in that print statement (and as many print statements as you like, since there a limit to the line size) between the start_html and end_html (which are definined in the CGI package you included).

by jaboy78

i have paste it ton my cgi and works bute the first line appear
"Content-Type: text/html"
What does that mean??

This discussion is closed to new replies.