User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 422,984 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,959 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3096 | Replies: 1
Reply
Join Date: Jul 2006
Posts: 1
Reputation: sac_bid24 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sac_bid24 sac_bid24 is offline Offline
Newbie Poster

Paasing the values of Combo Box

  #1  
Jul 31st, 2006
How to pass the values of combo box options from one page to other page
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2005
Posts: 689
Reputation: digital-ether has a spectacular aura about digital-ether has a spectacular aura about 
Rep Power: 6
Solved Threads: 41
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Practically a Master Poster

Re: Paasing the values of Combo Box

  #2  
Jul 31st, 2006
Originally Posted by sac_bid24
How to pass the values of combo box options from one page to other page
I assume you're asking for multiple select boxes.
Use the php array notation for the name of the select box.

eg:

<select name="myselectbox[]" multiple="true">
<option value="0">Value 0</option>
<option value="1">Value 1</option>
</select>

Notice the name of the select box is myselectbox[].
This makes sure that the selected options are passed as an array to php.

You can use this notation for any form elements. Its required for multiple select boxes and multiple checkboxes.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC