Re: array data
| From: | memoimyself at yahoo dot com dot br | Date: | Wed, 11 Feb 2004 20:05:14 +0000 |
| Subject: | Re: array data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177454@lists.php.net to get a copy of this message | ||
Hello Imran,
On 12 Feb 2004 at 1:17, Imran Asghar wrote:
> 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
>
I'm afraid you'll have to start learning PHP from scratch. The freely-available PHP
manual has a fairly good introductory section and you'll also find tons of tutorials for
beginners on the web.
Good luck,
Erik