Accessing form fields for update [not solved]
Posted: Tue Dec 21, 2004 7:57 pm
Hi all,
I have a form whci I want to use to update information about set of rows. Initially I needed a checkbox to select which rows would be affected, which I have done by setting the checkboes up like this:
The trouble is that there are two other textboxes for each row, so if a checkbox is ticked for a row then the textboxes are updated in the database.
I can find what rews are ticked as I said, by using:
But how can I access the value of that rows textbox using the $id value if I set the textbox up like:
I also need to do some javascripting on these fields. I am assuming that javascript will automatically make an array of the id's so that I can work with them on a row by row basis. Anyhow, thats another problem, I have to make this work first.
Thanks for any input you can give.
I have a form whci I want to use to update information about set of rows. Initially I needed a checkbox to select which rows would be affected, which I have done by setting the checkboes up like this:
Code: Select all
<input type="checkbox" name="isSelectedї]" id="isSelected" value="{inserting row id here}">I can find what rews are ticked as I said, by using:
Code: Select all
foreach ($_POST['isSelected'] as $id) {
//action
}Code: Select all
<input type="text" name="definitionї]" id="definition" value="All Areas" size="80" maxlength="128">Thanks for any input you can give.