foreach ($_SESSION["cart_item"] as $item ){
$name=$item['name'];
$a=$item['p1'];
$b=$item['img1'];
$pname=$item['pname'];
$email=$item['email'];
$size=$_POST['sizea'];
$ddate=date('Y/m/d');
$p="insert into orders(order_id,ddate,customer,product,pname,p_img,size,email) values('$last','$ddate','$name','$a','$pname','$b','$size','$email')";
mysql_query($p) or die(mysql_error());
}
<select name="sizea[]" id="planida" >
<option>Select Plan</option>
<option value="XL">XL</option>
<option value="M" >M</option>
</select>
Output: Size: Array // not work
madantwo 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.