473,397 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Hide key value in drop-down

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

Dec 24 '05 #1
4 2012
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.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Dec 24 '05 #2
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.

Dec 24 '05 #3
Thanks Dikkie that helps and a Merry Christmas to you!

Vic

"Dikkie Dik" <no****@nospam.org> wrote in message
news:do**********@news.cistron.nl...
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.

Dec 24 '05 #4
Thanks Dikkie that did the trick! Merry Christmas to you.

Vic

"Dikkie Dik" <no****@nospam.org> wrote in message
news:do**********@news.cistron.nl...
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.

Dec 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: David | last post by:
Hi everyone, Hoping there are some .js/browser experts out there that can help with this weird problem. I have made a swap div routine and applied the events to menu buttons with a closer...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
2
by: Marcos Ribeiro | last post by:
Hi I was trying to code the DragEnter event on a RichTextBox on the IDE Code editor but I could not Find that member on the events ComboBox. So I tried seting the option (Tools menu) Text...
2
by: Gellert, Andre | last post by:
Hello, I have following problem: A user "xy" shouldn't have any rights to a table, but needs data from the content of the table. My idea was to setup a PL/PGSQL procedure to fetch the data...
1
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the...
5
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of...
2
Bob Ross
by: Bob Ross | last post by:
Because of IE6 not being able to put drop downs behind other divs I need to hide the drop downs when the div pops up. The problem is I hide the drop downs but the button is also using an update...
1
by: prathna | last post by:
Hi .. I have a logic:iterate tag which will display 5 rows each row with a drop downlist and 2 textfields.now by default all the rows will be shown.how do i hide all the rows except the first...
10
by: k3pp0 | last post by:
Hello. Here's my example form: <form method="get" action=""> <p> <input type="radio" name="radio_example" id="radio1" value="radio1_val" /> <label for="radio1">radio button one</label> </p>
6
by: Doogie | last post by:
Hi I have an img control I am trying to hide upon certain types of commands in my code behind. When to hide it is directly tied to a asp:dropdownlist control. So depending on what the user...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.