Diction Contact Form
 

Your Name:

Your E-Mail Address:

Company or Organization:

Message:

"; if ($op != "ds") { // This are the error messages on the required fields you can add or delete echo "$form_block"; } else if ($op == "ds") { if ($sender_name == "") { $name_err = "Please write your name!
"; $send = "no"; } if ($sender_company == "") { $email_err = "Please write the name of your company!
"; $send = "no"; } if ($sender_email == "") { $email_err = "Please write your e-mail!
"; $send = "no"; } if ($message == "") { $message_err = "Please write your message!
"; $send = "no"; } if ($send != "no") { // this is the info that comes on the email when it's ok to send! $msg = "E-MAIL SENT FROM http://www.yoursite.net/contact/\n"; $msg .= "Sender's Name: $sender_name\n"; $msg .= "Sender's E-Mail: $sender_email\n"; $msg .= "Sender's Company: $sender_company\n"; $msg .= "Message: $message\n\n"; $to = "email@yoursite.com"; $subject = "Information"; $mailheaders = "From: Information\n \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); echo "
"; echo " "; echo " "; echo " "; echo "
 
\"thankyou\"
 
 We will be back in touch with you within 24 hours thank you!
"; } else if ($send == "no") { echo "$name_err"; echo "$email_err"; echo "$company_err"; echo "$message_err"; echo "$form_block"; } } ?>