What about doing it this way:

        <option value="[EMAIL PROTECTED]">Johnny Martinez</option>

Then pulling the two values out upon Submit using JavaScript, you can
access both the value and the text.

Email address =
Document.formname.selectname[document.formname.selectname.selectedIndex]
.value 
Name =
Document.formname.selectname[document.formname.selectname.selectedIndex]
.text

-- Bill

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:psayers@;kentcountyarc.org] 
>Sent: Thursday, November 07, 2002 12:32 PM
>To: ActiveServerPages
>Subject: RE: Hidden in Option
>
>
>What about
><option value="bill::[EMAIL PROTECTED]">bill</option>
>
>use the double colon as a delimiter then use Split(form 
>element name, "::")
>
>
>-----Original Message-----
>From: Johnny Martinez [mailto:jmartinez@;tmi-la.com] 
>Sent: Wednesday, November 06, 2002 5:59 PM
>To: ActiveServerPages
>Subject: Hidden in Option
>
>Anyone have a tip on how to pass a hidden value along with the 
>value in a
><select> <option>?
>
><select name="name">
><option value="joe">Joe</option>
>  <input type="hidden" name="email" value="[EMAIL PROTECTED]">
><option value="fred">Fred</option>
>  <input type="hidden" name="email" value="[EMAIL PROTECTED]">
><option value="bill">Bill</option>
>  <input type="hidden" name="email" value="[EMAIL PROTECTED]">
></select>
>
>This is interrupting the <select><option>.
>I want to pass the "name" and "email" which I pulling from a 
>database within
>a loop.
>
>Johnny
>
>---
>You are currently subscribed to activeserverpages as:
>[EMAIL PROTECTED]
>To unsubscribe send a blank email to
>%%email.unsub%%
>
>---
>You are currently subscribed to activeserverpages as: 
>[EMAIL PROTECTED]
>To unsubscribe send a blank email to 
>%%email.unsub%%
>


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to