if(!isset($_POST['room_type_id']))
{
//array is empty
$_POST['room_type_id'] = array();
echo "None selected.";
}
else
{
//must do this for checkboxes (passing multiple values)
foreach ($_POST['room_type_id'] as $items)
{
echo $items;
}
}
when i echo to see the result, i get :112 and then value in field roomtype_id (table bookdetail) will only store the value "2".Where is another two value "1" store?Can anybody help me solve this problem?I'm new in php.Pls help.... i have try to search this problem since last week, but untill now i cant find a solution.Pls help.... thank you :(
2006-08-14
22:30:14 ·
update #1