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: Advisors
Posts: 1,157
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


Squeeze Machine
*****

Group: Members
Posts: 698
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


--------------------

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


Squeeze Machine
*****

Group: Administrators
Posts: 649
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.


--------------------
Luke Dingle . com

Turn Over a Playful Leaf on Web Design -- read about the javascript cat
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 247 21st February 2008 - 12:25 PM
Last post by: thesealportalteam
No New Posts   7 Jason 190 18th March 2008 - 12:51 PM
Last post by: Jason
No New Posts   13 jackfranklin 209 7th April 2008 - 01:44 PM
Last post by: paintingtheweb
No New Posts 2 Itsumishi 93 20th April 2008 - 08:02 PM
Last post by: Itsumishi
No New Posts   1 Mark 154 4th June 2008 - 01:24 PM
Last post by: karinne