- Messages
- 12
- Reaction score
- 0
- Points
- 16
guys pa help po panu po e connect ung function ng isang gateway sa mga field na to im using itexmo.com
newbie lng po !!
<html>
<body>
<h1>My SMS form</h1>
<form method=post action ='sms1.php'>
<table border=0>
<tr>
<td>number</td>
<td><input type='text' name='number'></td>
</tr>
<tr>
<td>Message</td>
<td><textarea rows=4 cols=40 name='message'></textarea></td>
</tr>
<tr>
<td>Api code</td>
<td><input type='text' name='api'></td>
<tr>
<td> </td>
<td><input type=submit name=submit value=Send></td>
</tr>
</table>
</form>
</body>
</html>
gusto kopo sana gumamit ng curless for xammp pero hnd ko alam panu gawin sana matulungan nyu po ako
here's the codes for cureless method
//##########################################################################
// ITEXMO SEND SMS API - PHP - CURL-LESS METHOD
// Visit www.itexmo.com/developers.php for more info about this API
//##########################################################################
function itexmo($number,$message,$apicode){
$url = '';
$itexmo = array('1' => $number, '2' => $message, '3' => $apicode);
$param = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($itexmo),
),
);
$context = stream_context_create($param);
return file_get_contents($url, false, $context);}
//##########################################################################
tpos eto ung Sample Usage
Send a message to "09151234567" the message "Test Message" using the ApiCode "API_CODE".
here's the code
$result = itexmo("09151234567","Test Message","API_CODE");
if ($result == ""){
echo "iTexMo: No response from server!!!
Please check the METHOD used (CURL or CURL-LESS). If you are using CURL then try CURL-LESS and vice versa.
Please CONTACT US for help. ";
}else if ($result == 0){
echo "Message Sent!";
}
else{
echo "Error Num ". $result . " was encountered!";
}
baka my ma reccomend po kaung tutorial !!! salamat po thanks in advance
newbie lng po !!
<html>
<body>
<h1>My SMS form</h1>
<form method=post action ='sms1.php'>
<table border=0>
<tr>
<td>number</td>
<td><input type='text' name='number'></td>
</tr>
<tr>
<td>Message</td>
<td><textarea rows=4 cols=40 name='message'></textarea></td>
</tr>
<tr>
<td>Api code</td>
<td><input type='text' name='api'></td>
<tr>
<td> </td>
<td><input type=submit name=submit value=Send></td>
</tr>
</table>
</form>
</body>
</html>
gusto kopo sana gumamit ng curless for xammp pero hnd ko alam panu gawin sana matulungan nyu po ako
here's the codes for cureless method
//##########################################################################
// ITEXMO SEND SMS API - PHP - CURL-LESS METHOD
// Visit www.itexmo.com/developers.php for more info about this API
//##########################################################################
function itexmo($number,$message,$apicode){
$url = '';
$itexmo = array('1' => $number, '2' => $message, '3' => $apicode);
$param = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($itexmo),
),
);
$context = stream_context_create($param);
return file_get_contents($url, false, $context);}
//##########################################################################
tpos eto ung Sample Usage
Send a message to "09151234567" the message "Test Message" using the ApiCode "API_CODE".
here's the code
$result = itexmo("09151234567","Test Message","API_CODE");
if ($result == ""){
echo "iTexMo: No response from server!!!
Please check the METHOD used (CURL or CURL-LESS). If you are using CURL then try CURL-LESS and vice versa.
Please CONTACT US for help. ";
}else if ($result == 0){
echo "Message Sent!";
}
else{
echo "Error Num ". $result . " was encountered!";
}
baka my ma reccomend po kaung tutorial !!! salamat po thanks in advance
Last edited: