array as hidden input

From: Date: Wed, 27 Sep 2000 17:00:15 +0000
Subject: array as hidden input
Groups: php.db 
Request: Send a blank email to php-db+get-3121@lists.php.net to get a copy of this message
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.

« previous php.db (#3121) next »