1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<style type="text/css">#D1 {display: none;}</style>
<script type="text/javascript">
function showscript() {
var n = document.form.btnr.length;
for(i=1;i<=n;i++) {
if(document.getElementById('choix'+i).checked == true) {
document.getElementById('D'+i).style.display = "block";
} else {
document.getElementById('D'+i).style.display = "none";
}
}
}
</script>
<body>
<form action="" method="post" >
<table>
<tr>
<td>vérifier la disponibilité d'un nom de domaine</td>
<td> : www.<input type=text name=domain></td>
<td>
<select name="suffix">
<option value=".com">.com</option>
<option value=".ma">.ma</option>
<option value=".net">.net</option>
<option value=".org">.org</option>
<option value=".fr">.fr</option>
<option value=".info">.info</option>
</select>
</td>
<tr>
<td align=right colspan=3><input type=submit name=proses value=vérifier onclick="showscript()" ></td>
</tr>
</tr>
</table>
</form>
<div id="D1">
<?php
{
$nama_domain = "$_POST[domain]"."$_POST[suffix]";
$arrHost = @gethostbynamel("$nama_domain");
if(empty($arrHost)){
echo "le nom de Domaine <strong>www.$nama_domain </strong>est disponible.";
echo'<form method="post" action="index.php?option=com_content&view=article&id=8">';
echo "<br><input name='nama_domain' size='50' value='$nama_domain' type='hidden'></input></br>";
echo'<input type="submit" value="commander" />';
echo'</form>';
}else{
echo "le nom de Domaine <strong>www.$nama_domain </strong> n'est pas disponible.";
echo'<form method="post" action="index.php?option=com_content&view=article&id=6">';
echo'<input type="submit" value="retour" />';
echo'</form>';
}
}
?>
</div>
</body> |
Partager