Hi, i am a beginner. I am having problem while printing the check box arrays and with the joining of arrays.
here is the sample code:
<?php
$retval = '<form name="myform action="post"><input type="checkbox" name="array1[]" value="elem1" checked >feed1</label><br/>';
$retval .= '<input type="checkbox" name="array1[]" value="elem2" checked >feed2</label><br/>';
$retval .= '<input type="checkbox" name="array2[]" value="elem3" checked >feed3</label><br/>';
$retval .= '<input type="checkbox" name="array3[]" value="elem4" checked >feed4</label></form>';
echo $_POST['array1[]'];
print_r($_POST['array1[]']);
//print_r($array2);
//print_r($array3);
?>
I am trying to print the array1[], array2[], and array3[] and also put the elements of these arrays into one array(with out override).Can somebody help me with this?
Thanks