Well 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 for your contact page you can Download below, the Dreamweaver tutorial above 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, phone.
This script is free, 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. Payment can be made by making the relevant donation by clicking on the pay pal button to the top right of the screen.
$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.