You are here: Re: Hide key value in drop-down « PHP Programming Language « IT news, forums, messages
Re: Hide key value in drop-down

Posted by Dikkie Dik on 10/15/26 11:35

That was the short answer. What do you mean by hiding exactly? If you
just want to hide the key values from the renered page, just use the
value attribute:
<option value="3">Number Three</option>
instead of
<option>3</option>

I can imagine that you want to hide your actual database IDs. In that
case, just don't send them. Compute a hash from them (or better: a
"salted" hash by including the session id) and send the hashes instead.
Store these hash values in the $_SESSION array, so you can look up the
real database IDs from the submitted hash value.

Have a nice christmas.

Jerry Stuckle wrote:
> Vic Spainhower wrote:
>
>> Hello,
>>
>> Access has the ability to hide the key value in a drop-down menu. Is
>> there a way in PHP to do the same thing?
>>
>> Thanks,
>>
>> Vic
>>
>>
>>
>
> PHP doesn't do drop down menus. HTML does.
>
> And no, there is no way for HTML to hide the key value. The client
> needs that value to return to the server.
>

 

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

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