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