Re: Array - problem

From: Date: Wed, 13 Sep 2000 16:31:38 +0000
Subject: Re: Array - problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16595@lists.php.net to get a copy of this message
Hi, To put form values in an array, put brackets after the variable name you've given the form, like this: <input type='hidden' name='info[]' value='1'> <input type='hidden' name='info[]' value='2'> <input type='hidden' name='info[]' value='3'> Hope this helps, Josh Davidson filmpensacola.com planwatch.org On Wed, 13 Sep 2000, David Tandberg-Johansen wrote: > I have a script that generates a form width several hidden fields. > > Example: > <input type='hidden' name='info' value='1'> > <input type='hidden' name='info' value='2'> > <input type='hidden' name='info' value='3'> > > What I want is to put the values of the 'info' fields into an array in the > next script, so i can extract the information from the 'info' array , and > put it in a mysqldb with some other information. // josh davidson // graphic design for web and print // php,c,c++,pascal programming // // 850-255-0830 // aim: netsmiley // changelog: http://www.filmpensacola.com/jwd/

« previous php.general (#16595) next »