Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

If I understand what you are doing here (maybe you could post code, resultant HTML?), you could simply put the value you want in the VALUE portion fo the INPUT tag and simply display the one desired field in the drop down menu. like:

<SELECT NAME="selectName"> <OPTION VALUE="table1fk">table1desc <OPTION VALUE="table1fk">table1desc <OPTION VALUE="table1fk">table1desc </SELECT>

this way the user sees what you want them to and your script gets what it needs to. I guess the point is, it doesn't matter what you use as the OPTION text, it's the OPTION VALUE that gets submited when your form gets parsed. So put whatever you want in the VALUE, and just display the little you wan to display.

The other way to read this is that you want to hide the value of table1id alltogether. If this is the case, you can put another column on table2 that is unique, use that as the OPTION VALUE and that would let you get the proper row and not show the value of table1id. You can just use a sequnce or somthing that would be unique and automatic (even have a trigger populate it - note I'm from the Oracle world, your terms may vary).

hope that helps...

-- I'm a solipsist, and so is everyone else. (think about it)


In reply to Re: Multicolumn Pulldown Menu by jptxs
in thread Multicolumn Pulldown Menu by rodry

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-16 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found