StructFindValue will search a structure for a particular value. Since the
URL and Form scope are structs, this will do what you want.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Josh R [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 15, 2001 5:39 PM
> To: CF-Talk
> Subject: How to Cover All URL and Form Attributes?
>
>
> Two part question. They are related
>
> Part 1:
>
> Let's say you have a page with lots of URL variables. (I.E. url.search,
> url.lang, url.homepage, url.custscript, url.start, url.end,
> url.frontscope,
> etc. etc. etc.)
>
> And you don't want to code a CFIF for each URL seperately for the same
> parameter.
>
> (cfif url.search CONTAINS "goofy")
> do this
> (/cfif)
> (cfif url.lang CONTAINS "goofy")
> do this
> (/cfif)
> (cfif url.hompage CONTAINS "goofy")
> do this
> (/cfif)
> (cfif url.start CONTAINS "goofy")
> do this
> (/cfif)
>
> Is there a way to just say:
>
> (cfif attribute.url CONTAINS "goofy")
> do this
> (/cfif)
>
> Or something similar?
>
>
> Part 2:
>
> Is it possible to also encompass all form.* attributes in one
> shot? Similar
> to the question above?
>
> Thanks.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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