#11097 [Com]: HTML Form Variable Error

From: Date: Tue, 20 Jul 2004 15:04:35 +0000
Subject: #11097 [Com]: HTML Form Variable Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62918@lists.php.net to get a copy of this message
ID: 11097 Comment by: gallery-anal99 at hotmail dot com Reported By: brw at brw dot net Status: Bogus Bug Type: HTTP related Operating System: Linux 2.4 kernel PHP Version: 4.0.5 New Comment: <a href=http://outstanding--hentai.da.ru>gallery anal</a> Previous Comments: ------------------------------------------------------------------------ [2001-05-24 17:00:47] cardinal@php.net No, this is quite intentional. For example, if you wanted to use a <select multiple> list, name it "list[]", and all the options that get selected will go into the array. ------------------------------------------------------------------------ [2001-05-24 16:40:29] brw at brw dot net After messing with some PHP functionality, I decided that I wanted an input field to be named like the following. func[name] the HTML looks like this. &lt;input type="hidden" name="func[name]" value="blah()"&gt; The unfortunate thing is that PHP treats the name func[name] as an array. I.e., $func. If this is supposed to act like this then ok, but I would guess this would not be a good idea. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11097&edit=1

« previous php.bugs (#62918) next »