PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Andy Dixon   NDNC Registration Check   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Quick and dirty example
Class: NDNC Registration Check
Check if a number on the India's NDNC registry
Author: By
Last change:
Date: 10 years ago
Size: 451 bytes
 

Contents

Class file image Download
<?php
require_once('ndnc.class.php');
if (
$_POST['number']) {
   
$ndnc = new ndnclookup();
    if (
$ndnc->check($_POST['number'])) {
       
?>
<h1>Number is in the NDNC database</h1>
    <?php
   
} else {
       
?>
<h1>Number is not in the NDNC database</h1>
    <?php
   
}

}
?>
<form method="post">
    <h1>NDNC Checker</h1>
    Number:<input type="text" name="number"><br/>
    <input type="submit">
</form>