you don't understand how this works then...

Jim
----- Original Message -----
From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>
To: "'Daniel Harik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 9:44 AM
Subject: RE: [PHP] Grid edit form


> > -----Original Message-----
> > From: Daniel Harik [mailto:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
> 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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to