smart thinking... However, it's no Html syntax.
Html doesn't allow any other object in the select statement.

you can do 2 things.
1) just go with only the name and do a DB check after submit.
    so when someone selects Joe, search the DB and return the email address

2) set the value to [Name];[Email], and split it after submit.
    So when someone submits you can retrieve joe;[EMAIL PROTECTED] from the
request and split that on the ;

regards

remie bolte



----- Original Message -----
From: "Johnny Martinez" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 11:58 PM
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 PROTECTED]

Reply via email to