Re: [PHP] Submitting several forms

2004-02-09 Thread Marek Kilimajer
make it one form and name the form elements using [], they will become arrays. example: the numbers (1 and 2) are ids of the records. then you loop the array and update the rows: foreach($_POST['name'] as $id => $null) { update table set name='{$_POST['name'][$id]}', surname='{$_POST['su

[PHP] Submitting several forms

2004-02-09 Thread Chitchyan, Ruzanna
Hi all I have the following problem: I want to allow users to update a number of records either one by one, or all together. Currently I have put each record in a separate form on a page and each form can be updated separately, but I don't know how to allow simultaneous update of all forms (with