session_start();
$string = '';
for ($i = 0; $i < 5; $i++) {
// this numbers refer to numbers of the ascii table (lower case)
$string .= chr(rand(97, 122));
}
$_SESSION['rand_code'] = $string;
?>
Contact/Feedback
echo "";
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="Anbu Paalam thanking you for enquiry on our Website.";
$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://quicksms.online/spanelv2/api.php?username=archerwebsol&password=awst@123&to=$mobile_number&from=THANKS&message=".urlencode($msg1));
//echo $sent2server;
//$sent2server=file_get_contents("http://groupsms.co.in/api/sendmsg.php?user=ARCHER&pass=ARCHER_786&sender=WebENQ&phone=8056109699&priority=ndnd&stype=normal&text=".urlencode($msg2));
$sent2server=file_get_contents("http://quicksms.online/spanelv2/api.php?username=archerwebsol&password=awst@123&to=8056109699&from=WebEnq&message=".urlencode($msg2));
$query="insert into feedback(contact_person,mobile_number,email_address,query_suggestion,time_stamp) values('$contact_person',$mobile_number,'$email_address','$query_suggestion',now())";
$result=mysqli_query($db,$query) or die('Could not insert data records because : '.mysqli_error($db));
echo "
Thank you for your feedback/enquiry.";
}
?>