Re: web form data to arrays?

From: Date: Wed, 17 Jan 2007 17:34:33 +0000
Subject: Re: web form data to arrays?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-247239@lists.php.net to get a copy of this message
Sorry about that...yes it creates an array so... <input type="text" name="names[]" value="Larry"> <input type="text" name="names[]" value="Curly"> <input type="text" name="names[]" value="Moe"> would create an array accessible from $_POST['names'] foreach($_POST['names'] AS $name){ echo $name; } ...produces: LarryCurlyMoe On 1/17/07, Németh Zoltán <znemeth@alterationx.hu> wrote:
And how does it work? does it create a sub-array of $_POST? And is it documented somewhere in the manual? Greets Zoltán Németh On sze, 2007-01-17 at 10:54 -0500, Mike Smith wrote: <input type="text" name="name[]"> *note the []. -- Mike


« previous php.general (#247239) next »