Saisie de formulaire html traitement php
comment saisir les elements d'un tableau dans un formulaire html et on fait son tri dans un fichier php puis afficher le tableau trié dans le formulaire. Merci
1 réponse
-
Bonsoir,
<form name="form1" method="post" action=""> tu fais tous tes input ainsi <input type="text" name="tableau[]" value="" /> et dans la partie php <?php $tableau=$_POST['tableau']; //tri array_sort($tableau); //affichage for($i=0;$i<sizeof($taleau);$i++){ echo '<input type="text" name="tableau[]" value="'.$taleau[$i].'" /><br />'; }