Bonjour,
je dispose d'une liste d�roulante qui rempli automatiquement les champs d'un formulaire en fonction du choix.
J'ai cach� le formulaire mais il faut tout de m�me que j'appuis sur le bouton envoyer pour valider le formulaire.
J'aimerai que le sumbit s'execute automatiquement une foi les champs remplis.
Je cherche une fonction javascript ( qui doit �tre asser simple ) pour ce que je cherche.
Merci de votre aide.
Voici le code du formulaire cach�
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 <h2>Selectionnez votre classe et votre Nom puis appuyez sur Envoyer.</h2> <div id="formulaire" style="visibility: hidden;"> <form action="index.php" method='post' style="width: 100%; margin-top: 24px; margin-bottom: 48px;"> <fieldset style="padding-top: 8px; padding-bottom: 8px; width: 40%; margin-left: auto; margin-right: auto;"> <legend class="fontcolor3" style="font-variant: small-caps;"><?php echo get_vocab("identification"); ?></legend> <table style="width: 100%; border: 0;" cellpadding="5" cellspacing="0"> <tr> <td style="text-align: right; width: 40%; font-variant: small-caps;"><?php echo get_vocab("login"); ?></td> <td style="text-align: center; width: 60%;"><input type="text" name="login" value="<?php echo affiche($_POST['nom']) ?>" /></td> </tr> <tr> <td style="text-align: right; width: 40%; font-variant: small-caps;"><?php echo get_vocab("pwd"); ?></td> <td style="text-align: center; width: 60%;"><input type="password" name="password"value="passe" /></td> </tr> </table></div> <input type="submit" name="submit" value="<?php echo get_vocab("submit"); ?>" /> </fieldset> </form>
Partager