Re: Grid edit form
| From: | Jim Lucas | Date: | Fri, 28 Mar 2003 19:49:08 +0000 |
| Subject: | Re: Grid edit form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141485@lists.php.net to get a copy of this message | ||
you don't understand how this works then...
Jim
----- Original Message -----
From: "Ford, Mike [LSS]" <M.Ford@lmu.ac.uk>
To: "'Daniel Harik'" <lists@dharik.com>; <php-general@lists.php.net>
Sent: Friday, March 28, 2003 9:44 AM
Subject: RE: [PHP] Grid edit form
> > -----Original Message-----
> > From: Daniel Harik [mailto:lists@dharik.com]
> > Sent: 28 March 2003 18:55
> >
> > Jim Lucas wrote:
> >
> > > This is untested, but I seem to recall doing something like
> > this on a
> > > project last year.
> > >
> > > <form method='post' action='/process.php'>
> > > <!-- row #1 -->
> > > <input type=text name='row[0][id]'>
> > > <input type=text name='row[0][name]'>
> > > <input type=text name='row[0][company]'>
> > > <input type=text name='row[0][title]'>
> > > <br>
> > > <!-- row #2 -->
> > > <input type=text name='row[1][id]'>
> > > <input type=text name='row[1][name]'>
> > > <input type=text name='row[1][company]'>
> > > <input type=text name='row[1][title]'>
> > > <br>
> > > <!-- row #3 -->
> > > <input type=text name='row[2][id]'>
> > > <input type=text name='row[2][name]'>
> > > <input type=text name='row[2][company]'>
> > > <input type=text name='row[2][title]'>
> > > <br>
> > > <input type=submit>
> > > </form>
> > >
> > Thank you for your reply, but i'm pulling records from db, and
> > ids won't be 1,2,3,4......n, but more random.
>
> Doesn't matter, so long as they are unique -- they don't have to be
> sequential, or even in order. Just use foreach on the row array to
iterate
> over the keys that are there.
>
> Cheers!
>
> Mike
>
> ---------------------------------------------------------------------
> Mike Ford, Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Beckett Park, LEEDS, LS6 3QS, United Kingdom
> Email: m.ford@lmu.ac.uk
> Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>