I'm pretty sure you can't do it the way you want to. My suggestion would be to put both the first name and the email address in the option value="" and separate them with a comma. Then once the form is submitted, grab everything before the comma and you have the email address and grab everything after the comma and there's the name.
Another way would be to just use the first name and then when the form is submitted grab the email address from the database. This would probably be the easiest as far as coding. Rob Swiger Webmaster TCRHonline - Where People Care Twin County Regional Healthcare 200 Hospital Drive Galax, Virginia 24333 (276) 238-3515 PHONE (276) 236-2660 FAX http://www.tcrh.org [EMAIL PROTECTED] GO HOKIES!!! -----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%% Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
