Download Perl Scripts

Intelliscript Submit Form Mailer 70108Intelliscript Submit Form Mailer - $0.00 Version 70108
Add to Cart



back
download
RSS Feed
_______________________________________

Submit Form Mailer by Intelliscript.net
(c) 2000-2007 Jason Silver

_______________________________________

Submit Form Mailer allows you to quickly and easily set up
a form processor on your site which will mail you the results
of form submissions.

Report any bugs or improvement suggestions to jasonsilver@crookedbush.com.

Yours,
Jason Silver

_______________________________________
Overview:
--------

How It Works:

Upload the script to your cgi-bin, and then point a form's action
tag to the URL of this script.

_______________________________________
Installation Overview:
-----------------------
1. Set some options at the beginning of the scripts
2. Use FTP to upload the files
4. Set exectute permissions on the Perl script, and write permissions on the
text files
4. Test the script

_______________________________________
Here's How!
-----------

1. Using a text editor like textpad, or notepad, open the .pl file(s)
Change the path to perl so that it's
configured for your server.
It's usually:
#!/usr/local/bin/perl
or
#!/usr/bin/perl

2. Change the variables at the top of the script, including your header and footer html.

For example,

$emailprog = '/usr/sbin/sendmail'; # the location of sendmail on your Unix/Linux server
$admin_email = 'jasonsilver@crookedbush.com'; # your email address- form submissions will go here
$antispam_password = 948722; # a six character random number - to discourage spamming your form

3. Open the form file you've made (or see our exampleform.shtml) and set
the action tag of the form to point to your script, wherever you may have put it or renamed it.

For example,
<form method=post action="http://www.yoursite.com/cgi-bin/email_form.pl"> (full url)
or
<form method=post action="/cgi-bin/email_form.pl"> (relative path)
or
<form method=post action="/forms/formprocessor.cgi"> (renamed script, not in cgi-bin)

A form can only be submitted to this form-processing-script if it contains the password, which
is related to the current time of day. This discourages spammers from sending you email through
your form from their own servers, since their forms won't contain the password.
To insert the password in your forms, the html page on which the form exists must be able to
process a server side include (SSI). Insert the following code within the form tags on your html
page to have the password inserted automatically:

<!--include virtual="/cgi-bin/email_form.pl/passkey"-->

This will insert a hidden field in your form which contains the passkey. If it is not being
inserted automatically, try changing the extension of your form from .html or .htm to .shtml,
which is the special extension for SSI's.

To validate the form on submission, to make sure that fields are not left empty, take a look
at the JavaScript in the exampleform.shtml. Make modifcations to that JavaScript as necessary.
There are notes on each line of the JavaScript, explaining how it works. It's not hard. :)

4. Use an FTP program like WS_FTP or CuteFTP (just some examples I'm aware of)
and upload the files to your server's cgi-bin.

5. Set permissions (CHMOD):
email_form.pl file: 755

NOW, TEST IT:

6. From a browser, open the exampleform.shtml file, or your own form and try submitting it.

As always, let me know of problems, questions, or requests for features.
Jason Silver


_______________________________________
www.CrookedBush.com




 
top next download purchase xml pad file RSS Syndication OPML List - All Programs



[admin]

FileCABINET Script - Create a File Download section on your site.

In the Spotlight

textonly $0.00
Add to Cart
 
It can be a time consuming task to create and upload those critical "text-only" versions of your web pages to the server. Now there's an easier way-- one little script in your cgi-bin and viola! instant text only pages created in real time.
[more & download links]

What People Say

AutoFollowup $5
Add to Cart Thanks for an awsome piece of software. It was exactly what I was after!
...I looked closely at what you were offering and... it just cemented my decision to buy from you.
Keep up the good work.
Ross Mitchell
[more & download links]

Post Page Comment