par
sirakawa » 29 mars 2012, 17:51
Surtout que, après vérification, si on met des <input id="nom"...> sans champ name, ils sont inconnus du script récepteur.
<form name ="toto" method = "post" action ="exploite.php">
<label for "id">Nom du père</label>
<input type = "text" name = "bp" id = "champ" />
<label for "id">Nom du beau-père</label>
<input type = "text" id = "champ" />
<button type = "submit">OK</button>
</form>
résultat par :
print_r($_POST);
Array ( [bp] => toto )
Surtout que, après vérification, si on met des <input id="nom"...> sans champ name, ils sont inconnus du script récepteur.[php]
<form name ="toto" method = "post" action ="exploite.php">
<label for "id">Nom du père</label>
<input type = "text" name = "bp" id = "champ" />
<label for "id">Nom du beau-père</label>
<input type = "text" id = "champ" />
<button type = "submit">OK</button>
</form>[/php]
résultat par :
print_r($_POST);
Array ( [bp] => toto )