Thursday, 22 August 2013

PHP - get data from select box without the value

PHP - get data from select box without the value

I'm having a bit of a confusing question but hopefully you'll get what I
mean:
In my website I'm trying to implement a select box which is updated based
on the value from a previous select box. For that I'm using a javascript
that takes the values. For example an option from the select box looks
like this:
option value="22">Apple/option>
I need the value in order to filter the select boxes but in my PHP script
I need to get that 'Apple' text. Is there a way to do that?
Sorry for the noob question but web development is new for me. Thanks in
advance!

No comments:

Post a Comment