Hello Iam building instant mail message for my page... The only thing iam not getting is my dropp down menu section (Interseted) don't know why ?
Here is my html code:
Here is my PHP Code
Here is how Form Look in my email:
Form details below.
Full Name: john
Email: [email protected]
Phone: 4164258695
Postal Code': m3c1e6
Interested:
Comments: hello just testing..
Here is my html code:
Code:
<font color="#ffffff">INTERESTS:</font><br> <select id="Interested" size="1" title="Interested " name="Interested" style="height: 25px; width: 210px; font-size: 14px; vertical-align: middle; background-color:#ffffff; text-transform: capitalize;"> <option value="">Choose Option</option> <option value="Business Card Design">Business Card Design</option> <option value="Flyer Design">Flyer Design</option> <option value="Logo Design">Logo Design</option> <option value="Web Design">Web Design</option> <option value="Photography">Photography</option> <option value="Social Website Design">Social Website Design </option> <option value="Photography">Photography</option> <option value="Videography wedding">Videography wedding </option> <option value="Sweet Sixteens">Sweet Sixteens</option> <option value="Music Videos">Music Videos</option> <option value="Tv Commercial Production">Tv Commercial Production</option> <option value="Artist Biography">Artist Biography</option> <option value="Special Events">Special Events</option> </select> <br>
PHP Code:
<?php
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "[email protected]";
$email_subject = "Hello";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
$full_name = $_POST['FullName']; // required
$email = $_POST['Email']; // required
$phone = $_POST['Phone']; // required
$postal_code = $_POST['PostalCode']; // required
$interested = $_POST['Interested']; // required
$comments = $_POST['Your_Message'];
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
$email_message .= "Full Name: ".clean_string($full_name)."\n";
$email_message .= "Email: ".clean_string($email)."\n";
$email_message .= "Phone: ".clean_string($phone)."\n";
$email_message .= "Postal Code': ".clean_string($postal_code)."\n";
$email_message .= "Interested: ".clean_string($interested)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
<!-- include your own success html here -->
Thank you for contacting us. We will be in touch with you very soon.
Form details below.
Full Name: john
Email: [email protected]
Phone: 4164258695
Postal Code': m3c1e6
Interested:
Comments: hello just testing..
Comment