Can't seem to $_GET my php script to work.. | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through March 09, 2004 ⬆ |
◄ ► |
Author | Message | |||
red Unregistered guest |
Hi, How to use $_GET (PHP) with the URL-command in Nowsms? I tried several things now,and I don't think sms is so much fun anymore My url to call the script is as follows: http://localhost/testsms14.php?Sender=@@Sender@@&Text=@@FullSMS@@ This is part of my php script> $fp=fsockopen("localhost",8800); if($fp) { echo "connection ok"; } else echo "connection failed"; if (isset($_GET['Sender'])) { $idIn = $_GET['Sender']; } else { $idIn = false; } $connection = mysql_connect("host", "port") or die ("Unable to connect!"); mysql_select_db("mysms") or die ("Unable to select database!"); >> script to insert data into mysql >>>> ?> Any help would REALLY be appreciated! } | |||
red Unregistered guest |
Sorry, It took a while..but,just when you get desperate everything works...SMS is fun Bryce, thanks for your help earlier. Have a nice weekend! |