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.







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



Reply via email to