Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   All Combo Values into PHP VAR (http://www.programmingforums.org/showthread.php?t=11647)

kruptof Oct 20th, 2006 7:54 PM

All Combo Values into PHP VAR
 
hi


i seek advice in how to get all the values in a combo box into an php varaible if i use the post method then all i get is an single value, any help will be greatley appreciated.

thanks.

DaWei Oct 20th, 2006 8:03 PM

You don't show any code, buy my guess is that you need to change the name on the HTML page from name="name" to name="name[]". Ask me about my crystal balls.

kruptof Oct 20th, 2006 8:08 PM

okay thanx dawei i will try that.

so what about crystal balls?...lol....just kidding. actually i think i will try what you have suggested tommorow.


thanks

jsilver608 Oct 22nd, 2006 1:55 AM

is it a multi-select combo box?

matthewvb Oct 22nd, 2006 1:08 PM

array is the answer -- then cycle through the array based on its length to pull the values.


All times are GMT -5. The time now is 8:19 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC