window.onload = function() { document.getElementById("6_letters_code").focus(); }; '; }else{ $name = $_REQUEST['name']; $email = $_REQUEST['email']; $mobile = $_REQUEST['mobile']; $comment = $_REQUEST['comment']; // sms start $sms= "Inquiry contact Person: ".$name." Number: ".$mobile." ..dholeraproject.in"; $request =""; //initialise the request variable $param["method"]= "sendMessage"; //$param["send_to"] = "918511144396"; //$param[send_to] = "917069037351"; $param[send_to] = "918460336891"; $param["msg"] = "$sms."; $param["userid"] = "2000097027"; $param["password"] = "obis1234"; $param["v"] = "1.1"; $param["msg_type"] = "TEXT"; //Can be "FLASH”/"UNICODE_TEXT"/”BINARY” $param["auth_scheme"] = "PLAIN"; $param["mask"] = "OBISIN"; //Have to URL encode the values foreach($param as $key=>$val) { $request.= $key."=".urlencode($val); //we have to urlencode the values $request.= "&"; //append the ampersand (&) sign after each parameter/value pair } $request = substr($request, 0, strlen($request)-1); //remove final (&) sign from the request $url ="http://enterprise.smsgupshup.com/GatewayAPI/rest?" .$request; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $curl_scraped_page = curl_exec($ch); curl_close($ch); //sms end //email start require("/home/divyamatic/public_html/PHPMailer-master/src/Exception.php"); require("/home/divyamatic/public_html/PHPMailer-master/src/PHPMailer.php"); require("/home/divyamatic/public_html/PHPMailer-master/src/SMTP.php"); $subject="Website Contacus page from ".$name." - dholeraproject.in"; //$to = "info@dholeraproject.in "; $to = "kaneria28khushbu@gmail.com"; $emailbody= "
![]() |
||
Website Enquiry Details | ||
Name : | ".$name." | |
Phone/ Mobile No : | ".$mobile." | |
Email : | ".$email." | |
Comment : | ".$comment." | |
Thanks. Warm Regards, Global Easy web Solution Team. |
||
Copyrights 2013. Global Easy Web Solution All Rights Reserved. | ||