1){ //session_destroy(); //session_start(); $_SESSION["list"]="Y"; } if(isset($_GET["pst"])){ $_SESSION["def"] = $_POST; extract($_SESSION["def"]); $fname=$_SESSION["fname"]=$_REQUEST['fname']; $_SESSION["streetaddress1"]=$_REQUEST['streetaddress1']; $_SESSION["streetaddress2"]=$_REQUEST['streetaddress2']; $_SESSION["postcode"]=$_REQUEST['postcode']; $_SESSION["county"]=$_REQUEST['county']; $_SESSION["telephone"]=$_REQUEST['telephone']; $_SESSION["email"]=$_REQUEST['email']; $_SESSION["hear"]=$_REQUEST['hear']; $_SESSION["emes"]=$_REQUEST['emes']; include('dbconnect.php'); $query="SELECT * FROM sitedefs"; $result=mysql_query($query); while ($defs=mysql_fetch_array($result)) { extract($defs); } $chk=$epst=""; if($fname){$chk=$chk."1";} if($email){$chk=$chk."2";} if($emes){$chk=$chk."3";} if($chk == "123"){ $pos1 = strrpos($email, "@"); $pos2 = strrpos($email, "."); if($pos1 and $pos2){$epst = 1;} }//end check for email address //echo($pos1." - ".$pos2." - ".$chk." - ".$epst." - ".$fname); if($epst == 1){//send the confirmation email mail("$mastemail", "Web Info Request"," A person with the details below has requested information.\n\n Name = $fname\n Address = $streetaddress1\n $streetaddress2\n $postcode\n $county\n\n Telephone = $telephone\n Email address = $email\n How heard about us = $hear\n\n The above person entered the following message:\n $emes\n\n ", "From: $mastemail", "-fuser@$domain" ); mail("$email", "Web Info Request"," A person with the details below has entered the following details via the request form at www.$domain\n\n Name = $fname\n Address = $streetaddress1\n $streetaddress2\n $postcode\n $county\n\n Telephone = $telephone\n Email address = $email\n How heard about KYT = $hear\n\n The person above entered the following message:\n $emes\n\n If you did not make this information request please reply to this email with NOT REQUESTED in the subject and accept our apologies for the intrusion.\n\n If you did intend to make the request then you will be hearing from us just as soon as we can process your request.\n\n ", "From: $mastemail", "-fuser@$domain" ); ?>


Thank you for your interest in the Dover branch of the BCSS.

Your request has been forwarded and you will shortly be receiving a reply at the
address.

Click any menu item to continue browsing the website.


Thank you for filling out our request form, we appreciate your interest.

";} if(!$email){echo "You forgot to enter your email address.
";} if(!$emes){echo "You forgot to enter a message.
";} if($epst<>1 and $email){echo "You have not entered a valid email address.

";} ?>

Return to the enquiry form and try again.
  
Please enter request details below (* required field).
Your full name: *
Street Address:
Postal Code:
County:
Telephone number:
Valid Email address: *
How did you hear about us?:
Request Details: *