Connecting Tech Pros Worldwide Help | Site Map

Hide key value in drop-down

  #1  
Old December 24th, 2005, 02:15 PM
Vic Spainhower
Guest
 
Posts: n/a
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



  #2  
Old December 24th, 2005, 03:05 PM
Jerry Stuckle
Guest
 
Posts: n/a

re: Hide key value in drop-down


Vic Spainhower wrote:[color=blue]
> 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
>
>
>[/color]

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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  #3  
Old December 24th, 2005, 03:25 PM
Dikkie Dik
Guest
 
Posts: n/a

re: Hide key value in drop-down


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:[color=blue]
> Vic Spainhower wrote:
>[color=green]
>> 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
>>
>>
>>[/color]
>
> 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.
>[/color]
  #4  
Old December 24th, 2005, 06:25 PM
Vic Spainhower
Guest
 
Posts: n/a

re: Hide key value in drop-down


Thanks Dikkie that helps and a Merry Christmas to you!

Vic

"Dikkie Dik" <nospam@nospam.org> wrote in message
news:dojomh$nkr$1@news.cistron.nl...[color=blue]
> 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:[color=green]
>> Vic Spainhower wrote:
>>[color=darkred]
>>> 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
>>>
>>>
>>>[/color]
>>
>> 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.
>>[/color][/color]


  #5  
Old December 24th, 2005, 06:25 PM
Vic Spainhower
Guest
 
Posts: n/a

re: Hide key value in drop-down


Thanks Dikkie that did the trick! Merry Christmas to you.

Vic

"Dikkie Dik" <nospam@nospam.org> wrote in message
news:dojomh$nkr$1@news.cistron.nl...[color=blue]
> 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:[color=green]
>> Vic Spainhower wrote:
>>[color=darkred]
>>> 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
>>>
>>>
>>>[/color]
>>
>> 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.
>>[/color][/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
A scrolling text display that does't flash - possible in C#? =?Utf-8?B?UmF5IE1pdGNoZWxs?= answers 11 August 18th, 2007 04:25 AM
Session variable value resets aamirghanchi@gmail.com answers 5 April 4th, 2007 05:15 PM
Bound Dropdown List - doens't allow for user input? blouie answers 6 March 29th, 2007 11:35 AM
Error In SQL Statement scorpion53061 answers 4 March 6th, 2007 03:15 PM
How to get IP-Adess of the client (Windows autentication) lvpaul@gmx.net answers 7 November 19th, 2005 05:26 PM