Sandwich Artist
Posts: 25
186 credits Members referred : 0
« on: Feb 29, 2008, 12:50:37 AM »
On a particular portion of my page I'm displaying all of the liabilities for the particular customer by having a for loop run through all of the data found from the sql query...everything displays fine but I want to have a delete button for each row so that we can remove anything that we may not need, or shouldn't be included in the file. the problem is that the I can't seem to get the hidden fields that go with each button to store the ID of that row to work. It only passes the last ID of the last row no matter which button you click on...Here's my code so far
The javascript for the popup edit window works properly and opens the correct item based on the ID, but the buttons all use the ID of the last row no matter what...Just doesn't make sense to me...any suggestions?
« Last Edit: Feb 29, 2008, 12:50:44 PM by Nikolas »
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7975
40807 credits Members referred : 3
« Reply #1 on: Feb 29, 2008, 01:04:12 PM »
You just need to open and close a form element in every record. So this :