en effet avec le code ci dessous j'obtiens d'abord tout le bouton submit (modify) et pour finir les champs avec les textarea,input...
Comment obtenir d'abord tout les textarea, input(text) puis ensuite le bouton modify de mon formulaire ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 echo('<table width="100%" border="0" align="center"> <form method="post" target="" action="/cgi-bin/modif.pl"> <form method="post" target="" action="/cgi-bin/modif.pl">'); for ($i = 0 ; $i < $number_of_field ; $i++) { //Get the length of the field $nb_char = strlen($result[$i]); //adapt the textbox to the length if ($nb_char > 20) { echo('<tr><td>TITLE</td><td><TEXTAREA cols="60" rows="4">'.$result[$i].'</TEXTAREA></td></tr>'); } if ($nb_char > 60) { echo('<tr><td>TITLE</td><td><TEXTAREA cols="60" rows="8">'.$result[$i].'</TEXTAREA></tr>'); } if ($nb_char < 21) { echo('<tr><td>TITLE</td><td><input type="text" name="password" value="'.$result[$i].'"></tr>'); } } echo('<input type="submit" value="Modify"></form>');![]()
Partager