Why perform the SPLIT twice though?

DIM arrValues
arrValues = SPLIT(REQUEST("name", "**"))
sName = arrValues(0)
sEmail = arrvalues(1)

This makes it a little more expandable in that you can have more than
2 sets of values in a string.

Just add more:

sVarName = arrValues(index)

Chris Tifer
http://www.emailajoke.com


----- Original Message -----
From: "Corey L Bokowski" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 1:00 PM
Subject: RE: Hidden in Option


I have done something along this line.
...
<option value="joe**[EMAIL PROTECTED]">Joe</option>
...

Server side you can split the value on "**" and have your
Two values.

Dim sName, sEmail
sName = split(request("name", "**")(0)
sEmail = split(request("name", "**")(1)

hth


-----Original Message-----
From: Johnny Martinez [mailto:jmartinez@;tmi-la.com]
Sent: Wednesday, November 06, 2002 4: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