If you find yourself at this page, you are after a quick fix to get that problematic contact page up and running, and you probably made a smart move and saved yourself hours of time, because one error can cause the PHP Script to implode and trying to locate the error can be monotonous to the inexperienced eye.
Here I have created a simple PHP Script you can Download Above, this Dreamweaver tutorial will provide you with the information you need to change on the actual script. You will need to edit the scrip with the Email you wish your message to be sent, the return URL and you can edit the message and CSS to suit your website. This Script has variables to gather information from a form with three fields, Name – Email and Comments. If you have additional fields just add the variable to the form like shown bellow. Example. This assumes you have a contact form that wishes to gather an additional field for a phone number.
This script is free And works well on any type of web hosting service you may choose, however should you need assistance installing the script or adding additional data variables there will be a small installation fee of £10 - €12 or $15, we regard this as a fair honest and affordable price.
$email = $_POST['email'];
$name = $_POST['name'];
$phone = $_POST[phone];
$comments = $_POST['comments'];
$body = <<
IMPORTANT: The script will not work (locally) on your computer, the PHP script must be uploaded to a server before it can function, also be aware most free web hosting companies do not support the use of PHP on their servers. 99 percent of paid hosting will support your needs, but it’s always good to contact your provider to be sure.