Bonjour,
Je débute et suite à un premier teste j’ai un message d’erreur que j’aimerai ne pas voir apparaître. "Notice: Undefined index: coche1 in C:\Program Files\Apache Group\Apache2\htdocs\index.php on line 23"
Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 <table width="662" height="109" border="0" cellpadding="0" cellspacing="0" id="cadre"> <tr> <td width="186"><form id="form1" name="form1" method="post" action=""> <label> <input type="checkbox" name="coche1" value="1" /> Choix1 </label><br /> <label> <input type="submit" name="Submit" value="Submit" /> </label> </form> </td> <td width="199"> </td> <td width="277"> <?php $a = $_POST['coche1']; if( $a === "1") echo $a; ?> </td> </tr> </table>
Partager