RE: [PHP] Grid edit form
| From: | Don Read | Date: | Fri, 28 Mar 2003 16:47:49 +0000 |
| Subject: | RE: [PHP] Grid edit form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141460@lists.php.net to get a copy of this message | ||
On 28-Mar-2003 Daniel Harik wrote:
> Hello guys,
>
> I'm trying to make grid form that will allow to edit 60 rows at the same
> time, it's not hard to make a loop that would go from 0 to 59, but
> my problem is that i don't know what rows to update as i see no way to
> find
> row's id after form is submitted.
>
> Thank You Very much.
>
if ( (isset($submit)) && ($submit =='Update') ) {
while (list($id, $val) = each($row)) {
// do something with $id and $val
}
}
yourforloop {
// fetch $id, $val
echo "<INPUT TYPE=TEXT NAME=\"row[$id]\" VALUE=\"$val\">";
}
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
(53kr33t w0rdz: sql table query)