How to Check Credit Balance With PHP
With an aim to expand our SMS API Key base in multiple platforms, we enable users to check their SMS balance via PHP coding. You can also implement the scripts in your PHP website or any web based applications.
The HTTP respond will initiate a connection between iSMS Philippines system and your website. With that, you can keep track your SMS balance status anytime easily.
Please click below to find out about our send SMS API in other programming languages.
You will need to create 2 files (a HTML file and a PHP file)
1. Copy the sample code below to your code editor and save it as HTML file. It will act as a HTML form.
<body>
<form action="Check Balance.php" method="POST">
<p>username isms:<input type="text" name="name"/>
<p>password isms:<input type="password" name="password"/>
<p><input type="submit" value="submit"/>
</form>
</body>
</html>
2. Copy the sample code below to your code editor and save it as Check Balance.php (case sensitive). The file will act as a function file.
if($_POST['name']!=NULL){
$name=$_POST['name'];
}
if($_POST['password']!=NULL){
$pass=$_POST['password'];
}
header( "Location: http://isms.com.my/isms_balance.php?un=$name&pwd=$pass");
?>
3. Run the HTML file and enter your username and password. SMS Balance will be shown on the result page.