Envoi de 2 formulaires avec un submit
Bonjour,
Je cherche a comprendre comment deux formulaires peuvent être envoyer avec un seul submit en HTML avec une page de traitement différent, car je cherche à utiliser ajax avec xmlHttprequest pour me connecter à un site d'après mon interface de connexion.
Merci
Code:
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
|
<div class="connexion">
<div style="margin-top:3px; float:left">
<form action="authentification.php" method="post">
<span class="douze" id="vertfonce2">PSEUDONYME : </span>
</div>
<div style="margin-top:1px; margin-left:5px; float:left">
<input class="in-connexion2" type="text" name="ident" size="11" style="width:100px;"/>
</div>
<div style="margin-top:3px; margin-left:6px; float:left">
<form action="espace_membre/connexion.php" method="post">
<span class="douze" id="vertfonce2">MOT DE PASSE : </span>
</div>
<div style="margin-top:1px; margin-left:5px; float:left">
<input class="in-connexion2" type="password" name="motdp" size="11" style="width:100px;"/>
</div>
<div style="margin-top:1px; margin-left:6px; float:left">
<input type="hidden" name="env45" value="env45" />
<input class="submit-ok2" type="submit" value="" />
</div>
<div style="margin-top:3px; margin-right:12px; float:right">
<a href="motdepasseoublie.php" id="vertfonce2" target="_blank" title=""><span class="douze">Mot de passe oublié ?</span></a>
</div>
</form>
</div> |