
Source Cod
By: a guest on
Aug 20th, 2012 | syntax:
None | size: 1.32 KB | hits: 21 | expires: Never
<?php
// Authorisation details
$uname = "facebookcool123@gmx.de";
$pword = "floriancool";
//$hash = "yourhash"; //Use instead of password above. This can be retrieved the from Messenger->All Documentation Page
// Configuration variables
$info = "1";
$test = "0";
// Data for text message
$from = $_POST['from'];
$selectednums = $_POST['numberext'].$_POST['number'];
$message = $_POST['massage'];
$message = urlencode($message);
// Prepare data for POST request
$data = "uname=".$uname."&pword=".$pword."&message=".$message."&from=". $from."&selectednums=".$selectednums."&info=".$info."&test=".$test;
// Send the POST request with cURL
$ch = curl_init('http://www.txtlocal.com/sendsmspost.php');
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 Textlocal
curl_close($ch);
?>
<form action="index.php" method="POST">
Nummer:<br/>
<input type="text" size="2" name="numberext"> (0) <input type="text" name="number">
<br/><br/>
Von:<br/>
<input type="text" name="from">
<br/><br/>
Nachricht:<br/>
<textarea name="massage"></textarea>
<br/><br/>
<input type="hidden" name="submitted" value="true">
<input type="submit" name="submit" value="Senden">
</form>