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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.