Im still kind of new to php and Ive looked into solving this on my own...so I must post the question.
Im trying to post the results of a multiple select list to a new page. I realize that I will be passing an array and on the second page (ive tried tons of configurations) the result I get is just 'Array' instead of the actual value(s).
Thank in advance
list.htm
-----------------------------
<form action="list2.php" method="post">
<select multiple name="intColorID[]" size="5">
<option value="1">Red</option>
<option value="2">Green</option>
<option value="3">Blue</option>
<option value="4">Purple</option>
</select>
<input type="submit" name="submit" value="submit">
</form>
list2.php
-----------------------------
<?
$colors = $HTTP_POST_VARS['intColorID'];
echo $colors;
?>
Im trying to post the results of a multiple select list to a new page. I realize that I will be passing an array and on the second page (ive tried tons of configurations) the result I get is just 'Array' instead of the actual value(s).
Thank in advance
list.htm
-----------------------------
<form action="list2.php" method="post">
<select multiple name="intColorID[]" size="5">
<option value="1">Red</option>
<option value="2">Green</option>
<option value="3">Blue</option>
<option value="4">Purple</option>
</select>
<input type="submit" name="submit" value="submit">
</form>
list2.php
-----------------------------
<?
$colors = $HTTP_POST_VARS['intColorID'];
echo $colors;
?>