Bonjour,
j'ai un petit problème...j'ai un formulaire qui n'a qu'un "input".
Apparement, lorsqu'on saisit une valeur et que l'on tape directement la touche entrée, la fonction isset de PHP deconne alors que s'il y a plusieurs input, ca fonctionne...
Voici mon code :
quelqu'un peut il me dire si c'est normal ? si oui y a t il un moyen de contourner ce pb ,
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
25
26
27
28
29 <?php if (isset($_POST['envoyer'])) { echo 'test'; } ?> .... <form action="<?php $_SERVER['PHP_SELF'] ?>" method="post"> <table width="390px" bgcolor="#F4B54B" class="texte"> <tr> <td colspan="3" align="center" style="padding-top: 0px; margin: 0px 0px 10px 0px; font-size:24px"><br /><strong>blabla blabla</strong><br /> </td> </tr> <tr> <td rowspan="3" align="center" width="35%"><img src="" /></td> <td width="10%"><strong>bla</strong></td> <td width="55%" align="left">blabla</td> </tr> <tr> <td align="right" width="10%"><strong>bla</strong></td> <td align="left" width="55%">blabla : <input type="text" name="code" value=""size=10 maxlength="10" class="boiteFormulaire" /> <input type="submit" name="envoyer" value=" Envoyer" class="boiteFormulaire" /> <br /> </td> </tr> </table> </form>
merci de votre aide
Partager