m |
m |
||
Line 9: | Line 9: | ||
Once the formmail script is downloaded to your local computer, you need to upload it to ''cgi-bin'' folder on the server (this can be done via any '''''[http://myidealhost.com/tutorials/What_is_FTP FTP]''''' client) and set '''''[http://myidealhost.com/tutorials/How_to_change_file_permissions permissions]''''' for formmail.pl to 755. Then find the following line in the .pl script: | Once the formmail script is downloaded to your local computer, you need to upload it to ''cgi-bin'' folder on the server (this can be done via any '''''[http://myidealhost.com/tutorials/What_is_FTP FTP]''''' client) and set '''''[http://myidealhost.com/tutorials/How_to_change_file_permissions permissions]''''' for formmail.pl to 755. Then find the following line in the .pl script: | ||
− | ''@referers = ('scriptarchive.com','YOUR_IP'); '' | + | '''''@referers = ('scriptarchive.com','YOUR_IP'); ''''' |
and change it to: | and change it to: | ||
− | ''@referers = ('yourdomain.com','www.yourdomain.com');'' | + | '''''@referers = ('yourdomain.com','www.yourdomain.com');''''' |
Also you will need to add the following line to your contact form:</div> | Also you will need to add the following line to your contact form:</div> | ||
− | ''<input type=hidden name="recipient" value="email@your.host.com">'' | + | '''''<input type=hidden name="recipient" value="email@your.host.com">''''' |
<div align=justify>This defines to which email address you want the emails from your form to be sent. | <div align=justify>This defines to which email address you want the emails from your form to be sent. | ||
Line 23: | Line 23: | ||
Finally, add the following line to the code of the page your form is located on: | Finally, add the following line to the code of the page your form is located on: | ||
− | <form action="http://www.yourdomain.com/cgi-bin/formmail.pl" method="post" name="frmContact" id="frmContact"> | + | '''<form action="http://www.yourdomain.com/cgi-bin/formmail.pl" method="post" name="frmContact" id="frmContact">''' |
This specifies the path to your formmail script. | This specifies the path to your formmail script. |