RE: [PHP-DB] array as hidden input
| From: | Boaz Yahav | Date: | Wed, 27 Sep 2000 20:32:46 +0000 |
| Subject: | RE: [PHP-DB] array as hidden input | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3127@lists.php.net to get a copy of this message | ||
Just add [] in the name.
<? echo "<input type=\"hidden\" name=\"arr[]\"
value=\"$arr\">"; ?>
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
> -----Original Message-----
> From: Mirko Nalesso [mailto:okrim74@libero.it]
> Sent: Wednesday, September 27, 2000 7:00 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] array as hidden input
>
>
> Hi,
> I've a problem. Can an input hidden in a form be an array? Example:
>
> File prova.php
>
> <?
> $arr=array();
> $arr[1]=11;
> $arr[2]=12;
> $arr[3]=13;
> ?>
> <form method="post" method="prova1.php">
> <? echo "<input type=\"hidden\" name=\"arr\"
> value=\"$arr\">"; ?>
> <input type=submit value="NEXT" >
> <form>
>
> File prova1.php:
>
> <?
> echo"$arr[1] - $arr[2] - $arr[3]";
> ?>
>
> On the Netscape, file prova1.php appears:
>
> r - r - a
>
> What's wrong?
>
> Mirko.
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>