Cantrell, Adam wrote:
> Ooops I'm sorry, I'm actually trying to extract this value from the
> cgi.HTTP_REFERER variable. Here's what I'm currently using:
>
> <cfif (isDefined("cgi.HTTP_REFERER")) AND (FindNoCase("pCode=",
> CGI.HTTP_REFERER))>
> <cfset variables.pCode = mid(cgi.HTTP_REFERER,FindNoCase("pCode=",
> CGI.HTTP_REFERER)+6,2)>
> </cfif>
>
> My only problem is when the pCode starts to vary in length - they're not
> going to be two digits forever. Thanks for any help you can provide.
>
> Adam.
REreplace(str, "[.]*pCode=([^&]*)[.]*", "\1");
could do it... but I haven't tested it.
Jesse
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists