Jump to content

Checkbox-related problem


HBC

Recommended Posts

So, here's the deal..
I have a page that parses an XML feed to html.. But I don't want to use all of the data there, so I want to have a checkbox on each row that I can check if I want the information on that row to be inserted to a mysql database... And that's the problem, how do I do this? I've tried a lot of things, but none of them work.. If I choose 3 checkboxes from all over the page, the insert query on the action-page does show only 3 queries, but not the ones I chose, but the first 3.. And that's no surprise, since I don't know how to ID the checkboxes with the data on the rows.. I also tried this with javascript: if a checkbox is checked, the hidden inputs on that row (all ID'd with the same ID) change from disabled to not disabled, and, therefore only the not disabled inputs would be considered on the foreach-loop on the action page...
but I didn't get that to work either ::)
So that's why I'm here, to get some help on this.. should'nt be too hard, but I just can't seem to get it to work... I'll post parts of the code if needed..

Thanks
Link to comment
https://forums.phpfreaks.com/topic/35826-checkbox-related-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.