voila mon code et mon problème je ne vois pas du tout ce qui peut generer ce Undefined offset
<?php
include ("inc/connexion_base.php");
$choix=$_POST['choix'];
echo "<h1>Le contenu du panier sera</h1>";
mysql_query("create table tampon(id int(10) primary key, reference_produit int(10));");
for ($i=0;$i<sizeof($choix);$i++)
/*ligne 13*/$j=1;
/*ligne 14*/mysql_query("insert into `tampon` values('$j','$choix[$i]');");
echo "$choix[$i]<br>";
?>
Notice: Undefined offset: 1 in c:\program files\easyphp1-7\www\avitila\site avitila\tampon.php on line 13
Notice: Undefined offset: 1 in c:\program files\easyphp1-7\www\avitila\site avitila\tampon.php on line 14