Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Save Multiple Select Boxes?

This is a discussion on Save Multiple Select Boxes?, within the PHP section. This forum and the thread "Save Multiple Select Boxes?" are both part of the Programming Your Website category.

 
Reply to this topicStart new topic
> Save Multiple Select Boxes?
Jason
post Jun 13 2008, 04:50 AM
Post #1


Master of the Universe
*****

Group: Mentor
Posts: 984
Joined: 15-February 08
From: London, England
Member No.: 141



CODE
<select name="categories" multiple="multiple">
    <option value="Web Design">Web Design</option>
    <option value="Web Development">Web Development</option>
    <option value="Freelancing">Freelancing</option>
    <option value="Catering">Catering</option>
</select>


How do I save the results of more than one selection with php?
Go to the top of the page
 
+Quote Post
Monie
post Jun 13 2008, 05:26 AM
Post #2


ASP Advisor
*****

Group: Advisors
Posts: 602
Joined: 13-February 08
From: Borneo
Member No.: 8



Hai Jason..
I found this link from google but I don't know whether it suits your problem or not. Try look at it biggrin.gif
Save Multiple Select Box


--------------------
Monieweb.com - So much to learn, so little time!

QUOTE
The brain is a wonderful organ. It starts working the moment you get up in the morning, and does not stop until you get into the office!

Go to the top of the page
 
+Quote Post
Rakuli
post Jun 13 2008, 05:32 AM
Post #3


Rapid Squeezer
****

Group: Team Leaders
Posts: 497
Joined: 13-February 08
From: Catching the squeezed drips downunder.
Member No.: 13



Just give it a name categories[] and php will make it available via $_POST/$_GET['categories'][0], [1], [2] etc.. depending on how many options were chosen.


--------------------
Bright Idea? -- Don't Let it disappear
Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   6 Jason 100 21st February 2008 - 12:25 PM
Last post by: thesealportalteam
No New Posts   7 Jason 102 18th March 2008 - 12:51 PM
Last post by: Jason
No New Posts   13 jackfranklin 166 7th April 2008 - 01:44 PM
Last post by: paintingtheweb
No New Posts 2 Itsumishi 52 20th April 2008 - 08:02 PM
Last post by: Itsumishi
No New Posts   1 Mark Poppen 68 4th June 2008 - 01:24 PM
Last post by: karinne