General discussion

Locked

CGI-BIN

By jaboy78 ·
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?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

CGI-BIN

by nikki96 In reply to CGI-BIN

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).

Collapse -

CGI-BIN

by jaboy78 In reply to CGI-BIN

Poster rated this answer

Collapse -

CGI-BIN

by jaboy78 In reply to CGI-BIN

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

Collapse -

CGI-BIN

by jaboy78 In reply to CGI-BIN

i tried. it works but how bout a button to link back to my websie?

Collapse -

CGI-BIN

by jaboy78 In reply to CGI-BIN

This question was closed by the author

Back to Desktop Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums