I want to display a popup/drop-down to my users and get the value associated with that option chosen.
I have a working popup menu, but don't understand how to get the info I want.
When the user selects something from the menu, can I save the value that is associated with it? IE the site name is diplayed in the menu but I want to save the site URL when they make their selection.
the site_info array is in this format (I get this from another file, so I have to work with this format):
"Website name~http://www.websiteurl.com"
I break that apart into the array of just the names (@site_list), and the hash (%labels) of the name and url.
I am new to perl and am looking at "perl in a nutshell" but it doesn't help with this question. Any advice would be helpful.
Thanks, J