Formulaire et Javascript (help)

Fermé
Billy67 - 16 mai 2005 à 11:54
Lo-chan Messages postés 10 Date d'inscription lundi 16 mai 2005 Statut Membre Dernière intervention 1 avril 2009 - 16 mai 2005 à 12:08
bonjour,

comment envoyer des infos dans un formulaire au fichier afficher.php

<html>
<body>
<table>
<form action="afficher.php" method="post">

<tr>
<td>Nom</td><td><input type="checkbox" name="nom"></td>
</tr>
<tr>
<td>prenom</td><td><inputtype="checkbox"name="prenom"></td>
</tr>

<tr>
<td>valeur</td><td><inputtype="text"name="mtexte"></td>
</tr>

<tr>
<td>
<select name="dmc">
<option value="Choix 1" selected>Choix 1</option>
<option value="Choix 2">Choix 2</option>
<option value="Choix 3">Choix 3</option>
</select>
</td>
</tr>

<tr>
<td><input type="bouton" Value = "Valider"></td>
</tr>

</form>
</table>
</body>
</html>

1 réponse

Lo-chan Messages postés 10 Date d'inscription lundi 16 mai 2005 Statut Membre Dernière intervention 1 avril 2009
16 mai 2005 à 12:08
ton formulaire semble bon, juste un petit truc :

<inputtype="checkbox"name="prenom">

c'est "input type" et nom pas "inputtype"

pour récupérer tes infos, tu utilises : $_POST['nom_du_champs'];
et donc pour l'afficher tu met juste echo devant
0