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
|
<html>
<head>
<title> Formulaire de saisie </title>
</head>
<body>
<?
$tab=array("0"=>array("desc"=>"Description","nom"=>"Nom","var"=>"Variable"),
"1"=>array("desc"=>"Racine du serveur","nom"=>"racine","var"=>$_SERVER['DOCUMENT_ROOT']),
"2"=>array("desc"=>"Langage accepté","nom"=>"langage","var"=>$_SERVER['HTTP_ACCEPT_LANGUAGE'])
);
?>
<form name="saisie" action ="affichage.php" method="post" >
<table border=0 width=600>
<? for ($i=1;$i<=2;$i++)
{
?>
<tr>
<td width=500 bgcolor="red"><?print($tab["$i"]["desc"]);?></td>
<td width=100 bgcolor="blue"><input name="<?print($tab["$i"]["nom"]);?>" type="checkbox"
value="<?print($tab["$i"]["var"]);?>"></td>
</tr>
<?
}
?>
</table>
<input name="valider" type="submit"><br>
<input name="effacer" type="reset"><br>
</form>
</body>
</html> |
Partager