<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hey.&nbsp; I'm trying to make a dropdown(select) list of 
locations in a form, but instead of sending off the location name on submittal, 
I'd like to send an associated location ID, since I'm working with a 
database.&nbsp; I was wondering if I can set up a form element with a name and 
without a type on selection of a given dropdown option.&nbsp; To 
elaborate:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Let's say I have a dropdown list of the following 
cities:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>New York</FONT></DIV>
<DIV><FONT size=2>Los Angeles</FONT></DIV>
<DIV><FONT size=2>Boston</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>And each of these cities has associated with it a location ID, 
like:</FONT></DIV>
<DIV><FONT size=2>New York - 17</FONT></DIV>
<DIV><FONT size=2>Los Angeles - 13</FONT></DIV>
<DIV><FONT size=2>Boston - 6</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>I'd like a way to list the cities but send the ID's.&nbsp; 
Could I do something within the &lt;option&gt; tag like 
onselect="this.form.city_ID=17" for New York?&nbsp; If yes,&nbsp;could 
I&nbsp;just&nbsp;do it like that or&nbsp;would I need to declare the form 
element city_ID as a hidden variable or something along those lines?&nbsp; If 
not, does anyone have any ideas?&nbsp; I hope my javascript idea is 
understandable, I'm just turning to this language in order to move along a 
project that's primarily in PHP.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thanks,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>David.</FONT></DIV><hr>
<pre>
The information contained in this communication may be confidential, is
intended only for the use of the recipient(s) named above, and may be
legally privileged.  You are hereby notified that any dissemination,
distribution or copying of this communication and any of its contents or
attachments is strictly prohibited.  If you have received this
communication in error, please notify us immediately by replying to this
message and please delete this message from all computers and servers.</pre>
</BODY></HTML>