Alternatively, you can use the form below.
"; } $score=($_POST['name']<>"")+($_POST['email']<>"")+($_POST['message']<>"")+($_POST['phone']<>""); switch ($score) { case 4: //code for sending email from http://php.net/manual/en/function.mail.php // to $to = 'info@thinkphoton.com'; // subject $subject = 'Web Enquiry from thinkphoton.com'; // message $message = 'A message has been sent through thinkphoton.com
Name | '.$_POST['name'].' |
Company | '.$_POST['company'].' |
'.$_POST['email'].' | |
Phone | '.$_POST['phone'].' |
'.$_POST['message'].'
'; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: Think PhotonThankyou for your message. This has been successfully sent"; } else { echo"Message could not be sent"; } break; case 0: show_message_boxes(); break; default: show_message_boxes(); echo "
You need to complete all the boxes marked with a star above to send us a mesage.
Please try again.
"; } ?>