“business Lead Generation”
How do I create forms on Dreamweaver and set them up to email information inputted?
I am new to Dreamweaver and in the process of creating a couple of basic “lead generation” websites for my wife’s business. One needs a form to gather potential client’s details and submit them to my wife via email.
Can anyone suggest how to go about creating such a form.
A step-by-step process, if this is possible, would be extremely appreciated.
Html form to gather information from potential clients, first name, last name, address, suburb, phone, mobile and email address, you can add or delete the fields as required.
Paste the code where you want the form on your page.
PHP Script required (contactformprocess.php) make the necessary alterations then copy and paste into code and save as. This file needs to be in your website folder.
$emailSubject = 'Your website name';
$webMaster = ‘your email address’;
$firstnameField = $_POST ['firstname'];
$lastnameField = $_POST ['lastname'];
$addressField = $_POST ['address'];
$suburbField = $_POST ['suburb'];
$phoneField = $_POST ['phone'];
$mobileField = $_POST ['mobile'];
$emailField = $_POST ['email'];
$body = <<
First Name: $firstname
Last Name: $lastname
Address: $address
Suburb: $suburb
Phone: $phone
Mobile: $mobile
Email: $email
EOD;
$headers = “From: $emailrn”;
$headers .= “Content-type: text/htmlrn”;
$success = mail($webMaster,$emailSubject,$body,$headers);
$theResults = <<