corriger code html plusieurs form
Bonjour,
Comment mettre plusieurs actions dans un seul form, voila mon code, ça marche mais au niveau de l'écriture c'est faux :
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 29 30 31 32 33 34
|
<html>
<head>
<SCRIPT>
function Listederoulante() {
i = document.Choix.Liste.selectedIndex;
if (i == 0) return;
url = document.Choix.Liste.options[i].value;
parent.location.href = url;
}
</SCRIPT>
</head>
<center>
<u><b><h1>ADMINISTRATION</h1></b></u><br><br>
<form action="ajout.php" method="post"><input type="submit" name="ajout" value="Ajout" />
</form>
<form action="modifier.php" method="post">
<input type="button" name="modifier" value="Modifier" onClick="Listederoulante()" />
</form>
<form action="supprimer.php" method="post">
<input type="submit" name="supprimer" value="Supprimer"/>
</form>
<form name="Choix"action="accueiladmin.php" method="post">
<SELECT NAME="Liste">
<OPTION VALUE="">Faite votre choix
<OPTION VALUE="infodebase.php"> Choix 1
<OPTION VALUE="traitementdetexte.php"> Choix 2
<input type="hidden" name="deconnexion" value="deco" /><br><br><br><br><br><br>
<input type="submit" value="Se déconnecter" class="submit" />
</form>
</center>
</body>
</html> |
Si quelqu'un peut me corriger. Merci d'avance.
Ps : de plus avec plusieurs form, je ne peux pas aligner mes 3 boutons, normal et c'est gênant.