Bonjour,
j'ai un probléme et je veux de l'aide j'essaye de faire des formulaires qui me permettent d'enregistrer et de calculer le nombre d'appel telephonique reçu mais malheureusement mon submit de marche pas, ca marche seulement si je le fais en dans un seul <form>
<form name='form2'method="POST" action="traitement.php">
<b>appel1</b><br>
<b>ERREUR :</b> <br>
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 1
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 2
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 3
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 4
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 5
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 6
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 7
<br>
<input type="hidden" name="calculatedTotal" value="0">
<input type="hidden" name="previouslySelectedRadioButton" value="0">
<strong>Your total is:</strong>
<input type="text" name="total" readonly onfocus="this.blur();">
</form>
<form name='form3'method="POST" action="traitement.php">
<b>passe pas :</b> <br>
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 1
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 2
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 3
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 4
<input type="checkbox" name="Sauce" value="1" onclick="this.form.total.value=calculateTotal(this);"> 5
<br>
<input type="hidden" name="calculatedTotal" value="0">
<input type="hidden" name="previouslySelectedRadioButton" value="0">
<strong>Your total is:</strong>
<input type="text" name="total" readonly onfocus="this.blur();">
</form>
<br>
<input type="hidden" name="calculatedTotal" value="0">
<input type="hidden" name="previouslySelectedRadioButton" value="0">
<strong>Your total is:</strong>
<input type="text" name="total" readonly onfocus="this.blur();">
</form>
<INPUT TYPE="submit" value="submit" name="nom" onClick="submitFormsById(Array('form1','form2','form3'))">
<input type="submit" value="envoyer" />
</fieldset>
</td></tr></table>//