I want to return the contents of a multi-select list box from a form using an array.
Arrays scare me - not really sure how they work. The code above returned the following:
size: 4
Array Value 0 =
Array Value 1 =
Array Value 2 =
Array Value 3 =
I'm not getting the text value I was seeking following the equal sign. What am I doing wrong?
Thanks in advance.
MrsBean
Code:
$size = count ($_REQUEST['AreasOfInterest']);
$p1 = $_REQUEST['AreasOfInterest[]'];
echo "<P>size: $size </p>";
$x = 0;
while ($x < $size) {
echo "<p> Array Value $x = $p1[$x] </p>";
$x++;
}
Arrays scare me - not really sure how they work. The code above returned the following:
size: 4
Array Value 0 =
Array Value 1 =
Array Value 2 =
Array Value 3 =
I'm not getting the text value I was seeking following the equal sign. What am I doing wrong?
Thanks in advance.
MrsBean