Formulaire et Javascript (help)

Billy67 -  
Lo-chan Messages postés 10 Statut Membre -
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 Statut Membre
 
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