not one liner, not elegent, just different.  
It does take into account that it may be the only param though.
anyway, it took my mind off this jsp crap ive been doing all day, thanks!
 
<cfset params = right(cgi.HTTP_REFERER, find("?", cgi.HTTP_REFERER, 0)+1)>
<cfloop list="#params#" delimiters="&" index="i">
 <cfif find("numPageID", i) GTE 1>
  <cfoutput>
   #getToken(i, 2, "=")#
  </cfoutput>
 </cfif>
</cfloop>
 

 
Anthony C. Frey 
214-529-1507 
[EMAIL PROTECTED] 
 
 


----- Original Message ----
From: Joe Kelly <[EMAIL PROTECTED]>
To: Dallas/Fort Worth ColdFusion User Group Mailing List <[email protected]>
Sent: Wednesday, September 13, 2006 4:34:56 PM
Subject: [DFW CFUG] Brain Teaser


I want to see if someone can come up with a more elegant solution to
this problem.

Given:
CGI.HTTP_REFERER will always have a URL variable, "numPageID=xxx"
which is numeric and could be any size number.
The HTTP_REFERER may or may not have other URL variables in any order,
which could be alphanumeric or numeric
The current template needs to pull the value of the "numPageID" URL
variable out of the CGI.HTTP_REFERER

I'll show my solution in another post so as not to spoil anyone's view
on this problem, not saying that mine is best, of course!

Thanks,
Joe Kelly

_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

Reply via email to