damn this server is slow. I sent this a day ago...anyway what I did was concatenate the two values around a ^ then created two functions in the receiving script to rip them apart. Thanks for your time Wade :)
Johnny -----Original Message----- From: Wade Armstrong [mailto:wade_lists@;runstrong.com] Sent: Thursday, November 07, 2002 10:40 AM To: ActiveServerPages Subject: Re: Hidden in Option You could do the following: <select name="name"> <option value="joe,[EMAIL PROTECTED]">Joe</option> Then Split the value in the receiving script to get a 1-d array whose first value is the name and second is the e-mail address. Or you could just do another db lookup when you receive the form to grab whatever info is necessary. Wade on 11/6/02 2:58 PM, Johnny Martinez at [EMAIL PROTECTED] wrote: > 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]
