How to Check Your Balance with PHP

You can now apply the scripts to your PHP website or any web based applications. The HTTP respond will create a connection between the iSMS Australia system and your website. Thus, allows you to easily keep track of your SMS balance anytime, anywhere.

Learn more about checking account balance with other programming languages.


Sample PHP Script

1. Copy the sample code below to your code editor and save it as HTML file. It will act as a HTML form.

<html>
<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>
Check SMS Balance with PHP Code

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.

<?php
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. A numeric values will be displayed showing your SMS balance.

Check SMS Balance with PHP Code