Jump to content

multiple option form


LanceT

Recommended Posts

Basically, my forum script allows users to become buddies with other users. And on the buddy confirm page I want to create a list that has a checkbox next to it. If they check the box, and press a button to add, then those buddies will be added to the mysql database.

 

To give you a comparison, I basically just want it to do what Myspace's buddy confirm page does. Along with the "Select All" box.

 

I'm just not quite sure how to use checkboxes in a form or how to incorporate them into PHP.

 

Any help?

 

Here is a pic to illustrate in case you guys are confused.

 

howtojm1.jpg

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/38084-multiple-option-form/
Share on other sites

I'm understanding it a little better, but is there something I can do to check if the box is checked and then only inserting it if the box is checked?

 

Another thing, I need a button to submit and a button to delete all the checked ones as well, so how do I write that?

Link to comment
https://forums.phpfreaks.com/topic/38084-multiple-option-form/#findComment-184080
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.