Re: Grid edit form
| From: | Andrew Powell | Date: | Fri, 28 Mar 2003 16:25:59 +0000 |
| Subject: | Re: Grid edit form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141458@lists.php.net to get a copy of this message | ||
For the form:
for ($i=0;$i<=59;$i++) {
echo "<tr><td><input type=text name=myfield_".$i." value=".$somedata[$i]."></td></tr>";
}
For the post back:
for ($i=0;$i<=59;$i++) {
$somedata[$i] = $_REQUEST['myfield_'.$i];
}
aap
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.