You are here: Re: How to retrieve the text of a drop down list after a POST? « PHP Programming Language « IT news, forums, messages
Re: How to retrieve the text of a drop down list after a POST?

Posted by Zorro on 03/26/06 05:18

Yes, you are correct. After the post, I know the value (ex : H ) and I need
the text also. Then I do a SELECT col2 FROM myTable WHERE COL1 = 'H'

I wanted to avoid doing this query by passing both the value and the text
through the post.

Denis

"rlee0001" <robeddielee@hotmail.com> a ιcrit dans le message de news:
1143288409.220675.136750@g10g2000cwb.googlegroups.com...
> Let me make sure I understand the problem correctly.
>
> Your table in your database looks like this?:
>
> COL1 COL2
> H Hello
> G Good-Bye
>
> And you are using Col1 (H or G) as a key into the table and you want to
> know how to read the other columns from the table when the form is
> submitted? Is that correct?
>
> -Robert
>

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация