Can't seem to $_GET my php script to work..

Can't seem to $_GET my php script to work.. SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through March 09, 2004 » Can't seem to $_GET my php script to work.. « Previous || Next »
Author Message
red
Unregistered guest
Posted on Friday, January 09, 2004 - 06:37 pm:   

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
Posted on Friday, January 09, 2004 - 06:55 pm:   

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!

Login Login / Register Logout Logout Search Last 30 Days Topics Topics