You are here: Re: how to get select text in a form? « HTML « IT news, forums, messages
Re: how to get select text in a form?

Posted by David Dorward on 01/18/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация