Re: another quick php question

  • From: "E.J. Zufelt" <everett@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 11 Dec 2008 17:33:58 -0400

Alex,

Only if you were to put the text in the value attribute for the option element.

HTH,
Everett


----- Original Message ----- From: "Alex Hall" <mehgcap@xxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Thursday, December 11, 2008 6:29 PM
Subject: another quick php question


Is there a way to have php get the text of a select list option, instead of the value? Basically, the equivalent of the javascript:
var txt=form.select.options[form.select.selectedIndex].text;
I know php has the $_POST and $_GET arrays, but these get selected options' values. Thanks!

Have a great day,
Alex
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: