bonjour
voilà dans mon formulaire j'ai un controle de saisie (dans le "form") puis j'ai ajouter dans le "<input type='submit'..." j'ai rajouté un petit script permettant d'empecher l'utilisateur de cliquer 2 fois sur le bouton (afin d'eviter l'envoi 2 fois)
mais les 2 me semble incompatible, alors comment faire?

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
 
<form action='traitementinfoessai2OKOK.php' method='POST' name='formulaire' onSubmit = \"return testvalidation()\">
 
      <table border='0' cellspacing='0'
               cellpadding='2' align=center>
 
 
 
      <tr>
       <td align='right'> <b>nom </b></td>
       <td><input type='text' name='nom' size='30'
       maxlengh='65' onChange=\"javascript:this.value=this.value.toUpperCase() \"></td>
       </tr>
       <tr>
       <td align='right'> <b> prenom </b></td>
       <td><input type='text' name='prenom' size='30'
       maxlengh='65'></td>
       </tr>
 
...... suite su formulaire
 
 <input type='submit' value='cliquez ici' rows=6 COLS=26 style='font-family:arial' style='border style:solid' style='background:0033CC' style='color:white' onClick=\"this.form.submit();this.disabled=true;this.value='Patientez...'\">
en faite il ne prend en compte que le onClick dans le "input type = 'submit"

je ne sais pas trop comment faire pour allier les 2.

merci pour votre aide