I tried to create a form from an array and make the items selectable and be able to collect items individually for processing as variables but i get blank screen when i do echo $_POST['citem1']
<?php
foreach($_SESSION['cart'] as $data1 => $data2)
{echo
'<input type = "checkbox" name = "citem1" value = "'.$data1.'"/> ' .
' price:', $data2 . "<br>";}
?>
What I really want to do is to be able to select one or more of the items and put them in separate variables. Help please.
var_dump of $_SESSION=array (size=3)
'sugar' => string '989.32' (length=6)
'lolli' => string 'inquire' (length=7)
'caramel unreal' => string '00.00' (length=5)