On 5/22/06, Dave Shuck <[EMAIL PROTECTED]
> wrote:
Brent, try:
FindNoCase(CurrentCompareVal,CurrentCompareAllOptions)
~dOn 5/22/06, Brent Nicholas < [EMAIL PROTECTED]> wrote:Hi all, sorry for the OT. I already tried the HouseOfFusion forums with no luck. So I'm wondering if anyone here has dealt with this before of can see something I'm not seeing.
-------------------------------------------------
Howdy all -
So I've been given the lovely task of parsing out an email of values from a submitted form. Those in the know are already growning... ;)
Well in short it all boils down to this right now. "How do you do a "contains" with commas in the values?"
original form feilds:
<input name="mover" value=" Hydrogen Storage" type="checkbox">
<input name="mover" value="Gas Transport" type="checkbox">
<input name="mover" value="Power / HVAC , Settle, Gas" type="checkbox">
<input name="mover" value="Line / Pipe" type="checkbox">
<input name="mover" value="Some Option not selected 1" type="checkbox">
<input name="mover" value="Some Option not selected 2" type="checkbox">
Comming in the the template I have:
mover = Hydrogen Storage, Gas Transport, Power / HVAC , Settle, Gas, Line / Pipe
I am doing the following:
CurrentCompareAllOptions = mover
CurrentCompareVar = Power / HVAC , Settle, Gas <----- this came out of a struct I have of each value with a key
The value for "CurrentCompareAllOptions" is all of the check boxes that were checked and emailed, thus I have no control over the value names otherwise you wouldn't be reading this and commas would not be in it except to separate values.
The "CurrentCompareVar" came out of a struct of all the values I manually populated from all the checkbox values on the form.
I then perform:
<cfif CurrentCompareAllOptions contains CurrentCompareVar>
They checked this option.
</cfif>
It does not work. No, error. Just no match.
It does work for every other "CurrentCompareVar " except if there are commas in the value.
For example if "CurrentCompareVar" = "Hydrogen Storage" I get a match.
or if "CurrentCompareVar" = "Line / Pipe" I get a match.
Let me know if more info is needed.
Thanks to all who can help.
BN
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone ( www.cfczone.org) and supported by CFXHosting ( www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz
--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
