I use this:
<select name="memberinfo">
<option value="#memberID#,#memberName#">#memberName#

then, on the action page:

Member ID = #listfirst(form.memberinfo)#
Member Name = #listlast(form.memberinfo)#

of course, if you might end up with commas inside your values, you'll want
to specify another dleimiter for the list.

HTH
D

-----Original Message-----
From: Michel Gagnon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:15 PM
To: CF-Talk
Subject: Re: Challenging dillemma (double values?)


Great idea!
Why didn't I think of that?

But how do we parse variables with cold fusion?

Thanks!!

Michael

----- Original Message -----
From: "Kevin Schmidt" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 11:25 AM
Subject: Re: Challenging dillemma (double values?)


> You could put both values in the value="" and then parse them out.  Have
> javascript pull the price info and CF pull out the part ID.  You could
> seperate them with a delimeter like * to make it easier.
>
> Kevin
>
> ----- Original Message -----
> From: "Michel Gagnon" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 06, 2001 8:16 AM
> Subject: Challenging dillemma (double values?)
>
>
> > Hi!
> >
> > I have a little challenging question for you.
> > I have a "build your own computer system"
> > page where customers can choose what parts
> > they want in their system.  There is a javascript
> > that calculates everything on the fly.
> > This javascript needs to have the price
> > as the value:
> >
> > <option value="#price#">#PartName#</option>
> >
> > But, I also need to pass the partID to the server, not the price.
> > Is there a way that we could have the best of both world?
> > The calculating javascript and the PartID's to send to the server?
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to