m (Created page with "<div align=justify>Having a contact form on your site is very useful as it allows your visitors to contact you or just leave a comment. But simply adding the code of the form to ...") |
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'); '' | |
and change it to: | and change it to: | ||
− | + | ''@referers = ('yourdomain.com','www.yourdomain.com');'' | |
− | Also you will need to add the following line to your contact form: | + | 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"> | ||
− | 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. |
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: |