Reply to Re: How to retrieve the text of a drop down list after a POST?

Your name:

Reply:


Posted by Zorro on 11/18/04 11:43

Yes, this is a very good solution.

thank you guys for your help;
Denis

"rlee0001" <robeddielee@hotmail.com> a ιcrit dans le message de news:
1143349385.586981.110540@i40g2000cwc.googlegroups.com...
> Denis,
>
> David's code with work for the H:Hello syntax you posted before.
>
> But be aware that the user can manipulate both strings so you shouldn't
> trust anything you pass via POST. The best way is to do a query on the
> destination page. It may seem redundant but it is the least error prone
> and compared to parsing apart strings it should be easier to manage as
> well if you change things later.
>
> Is client-side JS acceptable? If so put the full string in the
> 'longvalue' attribute of the option tags. Then on form_onsubmit copy
> that attribute's value to a seperate hidden form input element. Use
> hiddenfield.value =
> getElementById('myselect').getAttribute('longvalue') or something like
> that (untested).
>
> -Robert
>

[Back to original 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

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