If(!isset($_POST['submit'])){
?>
}Else{
include_once "db.php";
$contact_person=$_POST['contact_person'];
$mobile_number=$_POST['mobile_number'];
$email_address=$_POST['email_address'];
$query_suggestion=$_POST['query_suggestion'];
$str_contact_person=str_replace(" ","_",$contact_person);
$msg1="Akshayam Builders thanking you for enquiry on our Website. One of our representative will contact you soon.";
$msg2="Enquiry from ".$contact_person." (".$mobile_number.") - ".$query_suggestion;
$sent2server=file_get_contents("http://groupsms.co.in/api/sendmsg.php?user=ARCHER&pass=ARCHER_786&sender=THANKS&phone=$mobile_number&priority=ndnd&stype=normal&text=".urlencode($msg1));
$sent2server=file_get_contents("http://groupsms.co.in/api/sendmsg.php?user=ARCHER&pass=ARCHER_786&sender=WebENQ&phone=8190064545&priority=ndnd&stype=normal&text=".urlencode($msg2));
$query="insert into feedback(contact_person,mobile_number,email_address,query_suggestion,stamp) values('$contact_person',$mobile_number,'$email_address','$query_suggestion',now())";
$result=mysql_query($query) or die('Could not insert data records because : '.mysql_error());
echo "
Thank you for your Enquiry.";
}
?>