$value) { $data[$key] = filter($value); } /************************ SERVER SIDE VALIDATION **************************************/ /********** This validation is useful if javascript is disabled in the browswer ***/ if(empty($data['name']) || strlen($data['name']) < 4) { $err[] = "ERROR - Invalid name. Please enter atleast 3 or more characters for your name"; //header("Location: index-6.php?msg=$err"); //exit(); } // Validate Email if(!isEmail($data['email'])) { $err[] = "ERROR - Invalid email address."; //header("Location: index-6.php?msg=$err"); //exit(); } $user_ip = $_SERVER['REMOTE_ADDR']; // Automatically collects the hostname or domain like example.com) $host = $_SERVER['HTTP_HOST']; $host_upper = strtoupper($host); $path = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $admin = 'bluesstarr@gmail.com'; $usr_email = $data['email']; $user_name = $data['name']; $phone=$data['phone']; $messageform=$data['message']; $topicform=$data['subject']; $message = " Hello \n hello admin someone want to contact with us. Here is the contact details...\n Name: $user_name Email: $usr_email ip:$user_ip\n topic:$topicform message:$messageform Thank You Administrator $host_upper ______________________________________________________ THIS IS AN AUTOMATED RESPONSE. ***DO NOT RESPOND TO THIS EMAIL**** "; mail($admin, "Conatctus", $message, "From: \"Contactus\" \r\n" . "X-Mailer: PHP/" . phpversion()); header("Location:index.php"); exit(); } ?> Aldrops & more

contact info

V.K. Aggarwal & Co.

Hauz qazi,delhi-110006

+91-9811155627,+91-9811645294 E-mail: vkaggarwalco@gmail.com

"; foreach ($err as $e) { echo "$e
"; } echo "

"; } /******************************* END ********************************/ ?>

get in touch