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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.