Re: Grid edit form
| From: | Jim Lucas | Date: | Fri, 28 Mar 2003 19:48:19 +0000 |
| Subject: | Re: Grid edit form | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141484@lists.php.net to get a copy of this message | ||
you missunderstood my example then.
then 1,2,3,4,... is only for the array, you wont be setting that with the
result set from the db call. the id from the db call with be the value of
row[1][id] on the process page.
just think of it as a multidia indexed array
Jim
----- Original Message -----
From: "Daniel Harik" <lists@dharik.com>
To: <php-general@lists.php.net>
Sent: Friday, March 28, 2003 10:54 AM
Subject: Re: [PHP] Grid edit form
> 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.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>