include('connection.php'); if(isset($_REQUEST['submit'])) { // mail script $to = "directorskcet@gmail.com, rakesh.ranjan@brannia.com"; $subject = "Contact Us Form"; $txt = " Form Details: Name : ".$_REQUEST['fname']." ".$_REQUEST['lname']." email: ".$_REQUEST['email']." Phone: ".$_REQUEST['phone']." City: ".$_REQUEST['city']." course: ".$_REQUEST['course']." Description: ".$_REQUEST['desc']." Date: ".$date." ip_address: ".$ip." "; $headers = "From: ".$_REQUEST['email']."" . "\r\n"; mail($to,$subject,$txt,$headers); // end } ?>