Treat it as a delimited list?
cfscript
Freight.Description = ListFirst(form.shippingservice, ' - ');
Freight.Cost = ListLast(form.shippingservice, ' - ');
/cfscript
TJS wrote:
Hi Everyone,
I was wondering whether anyone knew of a simple solution to the
following:-
select
: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of bsmith
Sent: Thursday, August 30, 2007 1:32 AM
To: cfaussie
Subject: [cfaussie] Re: List/Menu Question.
relying on cost values from form fields is a bad idea i think... if you have
to do it make sure you at least have some referer
Neither
If it's a query just store the query in the session scope and loop over it
that way
cfoutput query=SESSION.Freight..
-Original Message-
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of TJS
Sent: Thursday, 30 August 2007 12:19 AM
To: cfaussie
Subject:
August 2007 2:17 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: List/Menu Question.
Travis, do you mean that when the form is submitted, you want to take the
form field (shippingservice, which has 2 values in it) and split that into 2
separate variables? You can do that using list functions
[mailto:[EMAIL PROTECTED] On Behalf
Of Steve Onnis
Sent: Wednesday, August 29, 2007 2:18 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: List/Menu Question.
Even that though, if the value was
cfset form.shippingservice = Item1 - blue - 15.45
and the description was Item1 - blue
Of Steve Onnis
Sent: Wednesday, August 29, 2007 2:18 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: List/Menu Question.
Even that though, if the value was
cfset form.shippingservice = Item1 - blue - 15.45
and the description was Item1 - blue then the description would only get