Hi, I searched all over the net for a clear solution but what solutions i have found just leave me with more questions and answered.
I have a multi step form using IF statements such as:
if(isset($_POST['2']))
{
echo "step2 data";
}else if(isset($_POST['3']))
{
echo "step3 data with text/ checkboxes fields";
echo"<input type='submit' name= 'register' value='Register'>";
}else if(isset($_POST['register']))
{
echo "sql data";
}else{
echo "step 1 data";
}
So in my step 3 I have 8 check boxes, I want the check boxes to insert into my database.
I was thinking that if i want to retrieve the check boxes again to let the user edit them or to show them later on in my webpage to a viewer as just a value and not a check box value to just store them as an int with '1' or '0' in my sql db
i have tried making my check boxes arrays but in my DB it gets inserted as s5:"Array" (i did a serialized approach).
I'm just guessing that because I'm using a multi step form that my values aren't being stored correctly somewhere.