Conversation opened. 1 read message.

More

1 of 30,707

 
 
Print all
In new window

index.php

Inbox
x

Vikas Arora

Attachments3:44 PM (2 minutes ago)

to me

 

Regards,
Vikas Arora
+91 99200 54754  |  Vikas@WebbleGum.com​
Attachments area
Click here to Reply or Forward
14.29 GB (95%) of 15 GB used
Last account activity: 1 hour ago

Details

BESbswy
BESbswy
BESbswy
BESbswy
BESbswy
BESbswy
BESbswy
BESbswy

<?php
	if(isset($_POST['mobile'])) {
	// Authorisation details.
	$username = "imanony2@gmail.com";
	$hash = "7f5e55f4599fb12736bab39ff34bba0ce366527e79fd8b09bd02c8e1827405bd";

	// Config variables. Consult http://api.textlocal.in/docs for more info.
	$test = "0";

	// Data for text message. This is the text message data.
	$sender = "TXTLCL"; // This is who the message appears to be from.
	$numbers = $_POST['mobile']; // A single number or a comma-seperated list of numbers
	$otp = rand(10000, 99999);
	$message = 'Your OTP for verification is '.$otp.'. Thanks.';
	// 612 chars or less
	// A single number or a comma-seperated list of numbers
	$message = urlencode($message);
	$data = "username=".$username."&hash=".$hash."&message=".$message."&sender=".$sender."&numbers=".$numbers."&test=".$test;
	$ch = curl_init('http://api.textlocal.in/send/?');
	curl_setopt($ch, CURLOPT_POST, true);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$result = curl_exec($ch); // This is the result from the API
	if($result == true) {
		echo "OTP succefully sent.";
	}
	curl_close($ch);	
}
?>

<form action="" method="POST">
	<label>Enter Your Name</label><br>
	<in-put type="text" name="name" placeholder=""><br><br>
	
	<label>Enter Your Mobile Number</label><br>
	<in-put type="numbers" name="mobile" placeholder=""><br><br>
	
	<in-put type="submit" value="Submit"><br><br>
	
	
</for
index2.php
Open with
Displaying index2.php.
Quick Enquiry
Hello GHN,I would like to have a second opinion from India. Here are my details for your reference :-
Name:-
Age & Gender:-
Email :-
Health Problem:-
Powered by