Originally posted by guysmy
1) Does anyone suggest a specific CGI script? (free)
2) How can I change the subject of the e-mail?
Johntabita is right! FormMail is so popular that just about every ISP I've ever encountered already has it available for you. Just e-mail your tech support and tell them you want FormMail in a CGI directory on your site and ask them for the path to PERL.
The rest is simple:
Code:
<form method="POST" action="http://www.yoursite.com/cgi-bin/formmail.pl">
<!--This line tells the server what to do-->
<input type="hidden" name="recipient" value="youremail@whatever.com">
<!--This line tells the server every email address to send the input to-->
<input type="hidden" name="subject" value="PutYourSubjectHere">
<!--This is where you can enter a subject-->
<input type="hidden" name="required" value="realname, email">
<!--This makes these two fields required fields-->
<input type="hidden" name="print_config" value="realname, email">
<!--This puts these two fields in the header of the email and in the body also-->
<input type=hidden name="redirect" value="http://www.yoursite.com/thankyou.shtml">
<!--This redirects the browser to another page after they press the submit button-->
<input type=hidden name="print_blank_fields" value="1">
<!--This forces fields to be included in email even when there's no info in them-->
Hope this helps
Bookmarks