Combobox Help!

C++, C#, Java, PHP, ect...
Post Reply
greasontim
Posts: 73
Joined: Tue Feb 15, 2011 3:14 pm

Combobox Help!

Post by greasontim »

So what I'm trying to do is auto-fill a combo box based on what you have selected in the first dropbox.
I'm using PHP to create my game so ya....

I have no idea where to begin to even try doing this.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Combobox Help!

Post by Jackolantern »

So you are wanting to set the value of a combobox based on an option from the previous page's form?
The indelible lord of tl;dr
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Re: Combobox Help!

Post by vitinho444 »

I think you need a javascript function, so you put the onchange event on the combo box and it changes the other.
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
hallsofvallhalla
Site Admin
Posts: 12023
Joined: Wed Apr 22, 2009 11:29 pm

Re: Combobox Help!

Post by hallsofvallhalla »

You could use PHP but will need to refresh the page once the first dropbox is selected.
greasontim
Posts: 73
Joined: Tue Feb 15, 2011 3:14 pm

Re: Combobox Help!

Post by greasontim »

Well, got every thing working.
Damn character selection is being a bit annoying though.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Combobox Help!

Post by Jackolantern »

hallsofvallhalla wrote:You could use PHP but will need to refresh the page once the first dropbox is selected.
Yep, that is what I was getting at: PHP or Javascript situation? lol
The indelible lord of tl;dr
Post Reply

Return to “Coding”