PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Giulio Bai   DCHK   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example #2
Class: DCHK
Check the availability of a domain name with whois
Author: By
Last change:
Date: 17 years ago
Size: 668 bytes


Class file image Download
if (isset($_POST['submit'])) {
$domain = $_POST['domain'];
$ext = $_POST['extension'];
$full_name = $domain . '.' . $ext;


$free = new DCHK();
$free->check_domain(", , , 1")) // Prints the register link also<br />
} else {
<form method="post">
        Check for a domain name:
        <input type="text" name="domain" />
        <select name="extension">
            <option value="com">.com</option>
            <option value="org">.net</option>
            <option value="net">.org</option>
            <option value="biz">.biz</option>
        <br />
        <input type="submit" name ="submit" value="Check now!"/>