Scripts That Work!

FormToEmail

FormToEmail is a simple PHP form to email script that allows you to make a comments or feedback form on your website. It uses PHP to email the contents of the form to you.

The script comes in just one file, and should only take you a few minutes to get it up and running.

It comes with a form, which you can simply copy and paste into your webpage.

It is great for people who are new to web design because it is very easy to set up, you only need to add your email address to it!

If you like, you can also enter the address of a page that you would like the sender to continue to after submitting the form.

The file itself which you can download (or copy the code below) is tiny, about 3K, so it loads in the blink of an eye!

FormToEmail is also very secure. Your email address does not show on the form anywhere. This is on the PHP script, which web browsers can't get to! This means that no-one can hijack your form script, and better still, it means that the nasty spambots won't collect your email address from your site and add it to their spam lists!

Your webhost must have PHP installed for this to work. If you're not sure, just ask them!

The form below is what you receive with FormToEmail, try it out, it will bring you back here. You don't need to enter your email address for the demo!

Demo (This will not send YOU an email, but it lets you see the personalised thank you message built into the script.)

Name
Email address
Comments
   FormToEmail by ScriptsThatWork.com

Download the script

The script is entirely free, all we ask is that you do not sell it. You can copy it or distribute it as long as you keep the copyright notice contained in the script, and that you do not remove any references to FormToEmail or ScriptsThatWork.com

You can download a zip file. To use this you will need Winzip on your computer.

Click here to download

When you have downloaded the file, open it with Winzip then open the file (FormToEmail.php) in a text editor such as Notepad.

Follow the simple instructions inside the file, the minimum that you need to do is enter your email address and copy the code for the form onto your webpage.

Just copy the code!

You may prefer just to copy the code. FormToEmail is supplied in just one file.

Just copy the code, and paste it into any text editor such as Notepad, then save it as "FormToEmail.php". Then follow the simple instructions contained in the file.

IMPORTANT - The file name is case sensitive, you must save it exactly as "FormToEmail.php" - It is advisable to enclose the name in quotes when you save it, this prevents ".txt" being added to the end of it.

Click here to see the code

Then right-click on it, choose "Select All", then "Copy". Open your text editor and select "Paste", then save the file as "FormToEmail.php". Then just follow the simple instructions contained in the file.

Just upload the file to your normal webspace, or create a sub-directory for it. Make sure that your webpage and the FormToEmail script are in the same directory (folder).

It is not advisable to place the script in the cgi-bin directory, it may not work from there!

That's all! Good luck. If you need to contact us, then use the demo form above!

Rate Our Script @ HotScripts.com

Check out HotScripts.com for lots of free PHP scripts.

Valid HTML 4.01!

© ScriptsThatWork.com 2003