array data
| From: | Imran Asghar | Date: | Wed, 11 Feb 2004 20:17:11 +0000 |
| Subject: | array data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-177350@lists.php.net to get a copy of this message | ||
Hi,
Is not working, is it correct way????
File1.php
<? $colors = array('red','blue','green','yellow');
?>
<form action="file2.php" method="post">
<input type="hidden" type" name="colors"
value="<?=$colors?>">
</fomr>
File2.php
<?
echo $colors[0];
echo $colors[1];
echo $colors[2];
echo $colors[4];
?>
imee