Hi. I've been trying this code to work for a couple of days now.
I looked many posts and tried as much as I could find. I tried implode(), extract(), foreach()... But no luck.
Here is my code.
First page:
<input type="checkbox" name="famsituation[]" value="divorce">
Divorce
<input type="checkbox" name="famsituation[]" value="Married">
Married </p>
<p>
<input type="text" name="name">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
Second page:
if (!is_array($POST['famsituation']))
$fs[] = $POST['famsituation'];
else $fs = $_POST['famsituation'];
foreach($fs as $value){
echo $fs."<br>\n";
}
echo $_POST['name'];
I only get a word "Array" and whatever that was entered in
textfield. How can I see what values are in the array?
Somebody help me!!