http://qs321.pair.com?node_id=33879

rodry has asked for the wisdom of the Perl Monks concerning the following question:

I have the following scenario. There are two tables, they are related in by the foreign key displayed in italics.
Table 1</b
table1IDint
table1descvarchar(20)
Table 2</b
table2IDint
table2descvarchar(20)
table1fkint
As you may have noticed, Table 2 contains the foreign key to Table 1, which is an intenger value (for the Autoincrement field in table 1). table1desc is really the value that matters for the user. It is the value that the user sees and selects when I display the pull-down menu in HTML and populate it with the contents of Table 1.

So my problem is as follows. When I display the list of values to the user I am forced to do so by displaying the foreign key value next to the description value in pairs(table1desc). Then, when the user submits the form, a script splits the values pairs to extract the foreign key, which is an integer.

I would like to know if there is a way to hide this value from the user without having to alter the table structure to make the description value (table1desc) the primary key. This is all because I don't want the user to see the value of the primary key of Table 1.

Thanks...