neilmcdonald
Technical User
- Aug 16, 2002
- 53
Hi,
I've seen several posts regarding updating several MySQL records from one form, but I can't get my head around how to make it work for me...
I have set up a form which contains a table. Each row contains one job, which included a jobid and a drop-down of job status.
What I need is to be able to update the status for several jobs in one form.
I've managed to create an array with the correct information in by setting the name of the drop-down input to be an array.
What I can't figure out is how to set the key to be the jobid, so that when the form is posted, I can then loop through the values.
I'd be grateful for any advice,
Thanks,
Neil
I've seen several posts regarding updating several MySQL records from one form, but I can't get my head around how to make it work for me...
I have set up a form which contains a table. Each row contains one job, which included a jobid and a drop-down of job status.
What I need is to be able to update the status for several jobs in one form.
I've managed to create an array with the correct information in by setting the name of the drop-down input to be an array.
What I can't figure out is how to set the key to be the jobid, so that when the form is posted, I can then loop through the values.
I'd be grateful for any advice,
Thanks,
Neil