Forum Moderators: coopster
I'm having a small and probably stupid problem that is easy to solve but i can't get my head around to it!
After I submit the form I'm assigning the data from the form to several session variables for later storage. So far so good. When it comes to my combobox I use this:
$_SESSION['country'] = $_POST['country'];
And it works when I need to get the value from it, and in this case it is a number for each country. But I need to get the shown value in the combobox, like the name of the country. I know I can put the name of the country in the value of the box, but thats not good enough.
So how can I read the text instead of the value?
Javascript runs on the client side and is responsible for rendering the pulldown box and is there for a javascript object which is why you can get the name value.
daisho.