Posted by David Dorward on 10/04/40 11:35
lli@sos.state.tx.us wrote:
> print '<OPTION VALUE="000">ALL'
> I can get which item value users select. For example users select item
> 2, I can get its value "001". But now I want to get item text "AAA",
> not its value "001". How I can do this. I use CGI, HTML and python to
> code.
You can't get it from the data submitted. If you generate your form
programatically, you can use the same data source as you used to generate
your form to work out what value corresponds to what text. (Or you could
just not set a value and use the text itself as the form data).
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|