Email Contact Form
This script is a basic email-sending script that allow users to send an e-mail to you by filling out a simple form on you website.
Installation
- Change the value of the variable $receiverMail to the address you want the e-mail sent to
- Upload the file email.php to your host (it can be renamed to whatever you want, btw)
- Take a look at Quirksmode.com - Tableless forms for
info on styling the form, or use the CSS below:
textarea { overflow:auto; display:block; float:left; margin-bottom:10px; } input, textarea { border:1px solid #999999; padding:1px 2px; } label, input { display:block; width:150px; float:left; margin-bottom:10px; } label { text-align:right; width:60px; padding-right:15px; } form br { clear:left; } input.button { width:80px; background:white; }
Updates
Version 1.1
- Everything moved into one file
- Improved HTML for the form. Read more about styling it on Quirksmode.com - Tableless forms or check out the CSS example above
- Some minor code improvements