Forum Moderators: mack

Message Too Old, No Replies

help needed with CGI scripts....

         

tidydougal

9:15 am on Mar 2, 2004 (gmt 0)

10+ Year Member



could someone be really really nice and explain in basic english how to install and make a CGI script work for a basic dreamweaver form!

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?!

percentages

10:09 am on Mar 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Most people start with Matt Wright's FormMail script. See: [scriptarchive.com...]

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.