here is my code
when accessing this url
[
localhost]
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Send SMS</title>
</head>
<body>
<?php
require_once('lib/nusoap.php');
$c = new soapclient('someclient');
$params = array('min'=>$_REQUEST['mobile'], 'msg'=>$_REQUEST['message'], 'id'=>'''id');
$status = $c->call('SENDSMS', $params );
echo $status;
?>
<br />
<br />
<?php
if ($status == "RETEMP02"
echo "Mobile number is empty.";
elseif ($status == "RETEMP03"
echo "Message is empty.";
elseif ($status == "RETEMP05"
echo "Message Id is empty.";
elseif ($status == "RETVAL03"
echo "Invalid mobile number.";
elseif ($status == "RETVAL04"
echo "Mobile number not recognized.";
elseif ($status == "RETVAL05"
echo "Message is containing illegal character.";
elseif ($status == ""
echo "Message sending failed";
else
echo "Message has been sent successfully.";
// in this part i want to respond with a status of 200,sorry i just started php last wik
?>
Edited 1 time(s). Last edit at 06/20/2008 12:13PM by joaquinbordado.