Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

help guys !! sa sms notification using php

CHROMO01251

Recruit
Basic Member
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!";
}:pray::help:



baka my ma reccomend po kaung tutorial !!! salamat po thanks in advance
 
Last edited:
function po ang part na ito ng itexmo api
Code:
//################################################## ########################
// 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!";
}

CMV ba yang structure mu po? i mean may "controller" may "model" at may "view"..

pwede kang gumawa ng function file.. at ilagay mu yang "itextMo" api function duun at pangalanan mu ng "itextmo.php" and then e include mu lang xa sa controller mu like

require("../includes/FPDF/fpdf.php");
 
Back
Top Bottom