Forum Moderators: mack
All im after is a form that a user feels in and is sent to my email address, i believe this is cgiemail?
if im correct could somebody guide my through the process of where to download a cgiemail script from, what program is needed to alter the relevent parts of the scripts and finally how to insert and get the script working on my dreamweaver page?
if u could help me out id be extremely grateful?!
If you wish to modify the script you can do it using any text editor, or even in DW as an ascii text file.
To make the script work from the HTML page you will need something like:
<form action= "mydomain.com/cgi-bin/formmail.cgi" method="post">
<input type="hidden" name="subject" value="Some Subject">
<input type="hidden" name="recipient" value="me@mydomain.com">
<input type="hidden" name="required" value="name,email,phone">
<input type=hidden name="redirect" value="mydomain.com/thankyou.html">
Name:<input type="text" name="name"><br>
Phone #:<input type="text" name="phone"><br>
Email Address:<input type="text" name="email"><br>
<input type="submit" value="Send Form">
</form>
The single biggest mistake made is not setting the permissions on the Perl Script to 755 when you upload it to the server in ASCII mode.
Once you have the hang of this one, I suggest looking at PHPMailer, that is much more sophisticated and secure.