Hi:
How can I send an array in a hidden field.
This is an example of what I have
<?PHP
$colors=array('red','blue','gray','white','black');
print_r($colors);
?>
<FORM METHOD=POST ACTION="test3.php">
<INPUT TYPE="hidden" name="test[]" value="<?PHP echo $colors ?>">
<INPUT TYPE="submit" name="sub" >
</FORM>
<?PHP
if(isset($_POST['sub'])){
echo "<H2>THIS IS WHAT THE FORM READS</H2>";
print_r($test);
}
?>
Thanks in advance for anyone who helps