Jump to content

Post Raw Data


phpnewbie112

Recommended Posts

yes :D lol

 

 

Form:

 

<form action="post.php" name="form1" enctype="application/x-www-form-urlencoded" method="post" >
<p>To: <input type="text" name="to" size="20"></p>
<p>Text:<textarea rows="2" name="text" cols="20"></textarea></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

 

and the post.php file

 

<?

$url = "www.clickatell.com/api....the clickatell api link here";

$to = $_POST['to']);
$text = $_POST['text']);

if ( (!empty($to)) && (!empty($text)) )
{
$ret = file($url);
$send = split(":",$ret[0]);

if ($send[0] == "OK")  {
echo "Good";

}

else {
echo "Rejected";

}
exit();
}
?>

 

no correct text is received on mobiles

Link to comment
https://forums.phpfreaks.com/topic/118738-post-raw-data/#findComment-611412
Share on other sites

very simple, this code is a contact form to send instant short messages to my mobile. this is for example a text inside a form and how it appears on mobile phone

 

Form Text:

 

It's a first test

 

It's a 2nd [test]

 

 

Mobile:

 

It\'s a first test__It\'s a 2nd [test

 

 

Link to comment
https://forums.phpfreaks.com/topic/118738-post-raw-data/#findComment-611432
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.