> : Ben, yours worked - thanks dewd.
> n0 5w3a7. :-)
> --Ben "l33t r3g3x3r" Doom
0 p133z! :-P
Isaac
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
__
Signup for the Fusion Authority news alert and
: Ben, yours worked - thanks dewd.
n0 5w3a7. :-)
--Ben "l33t r3g3x3r" Doom
__
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/si
I think you should get an "A" for originality on the title !
- Original Message -
From: "Cantrell, Adam" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: September 25, 2002 6:02 PM
Subject: RE: please do my work for me
> SORR
tput a URL variable!!!
Sometimes we need affirmation on the simple things ;o)
Ben, yours worked - thanks dewd.
Adam.
> -Original Message-
> From: Ben Doom [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 4:54 PM
> To: CF-Talk
> Subject: RE: please do m
You can do this with RE's or #url.pcode# or:
#listlast(i,'=')#
-Original Message-
From: Cantrell, Adam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 5:38 PM
To: CF-Talk
Subject: please do my work for me
I want to extract a value
Just to clarify... YOU'RE PARSING THE URL MANUALLY?!?!?!?
CF does this for you. You can access the variable as "URL.pCode" from
anywhere in your code, as in:
The value of the pCode URL variable is #URL.pCode#.
--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
I may be missing something but that value is available as #url.pCode#
#url.pCode#
Paul Giesenhagen
QuillDesign
- Original Message -
From: "Cantrell, Adam" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 4:37 PM
Subject: please do my work for me
I'm assuming this is a link somewhere in some content you're cfhttp-ing, or
you'd just use url.pCode.
Anyhow,
pcode = rereplacenocase(url, ".*pcode=([^&]+).*", "\1")
Happy regexing.
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -Original Message-
: From: Cantrel
#url.pCode#?
ps. Leave the question mark off... :)
--
jon
mailto:[EMAIL PROTECTED]
Wednesday, September 25, 2002, 5:37:34 PM, you wrote:
CA> I want to extract a value from a URL variable which can show up anywhere in
CA> the URL. Here are some examples, I would want the pCode value which will
#url.pCode#
Why use a regular expression?
On Wed, 25 Sep 2002, Cantrell, Adam wrote:
> I want to extract a value from a URL variable which can show up anywhere in
> the URL. Here are some examples, I would want the pCode value which will
> always be an integer of varying length:
>
> index.ht
unless i'm missing something...
#url.pCode#
?
charlie
Cantrell, Adam writes:
> I want to extract a value from a URL variable which can show up anywhere in
> the URL. Here are some examples, I would want the pCode value which will
> always be an integer of varying length:
>
> index.htm
Well, one simple way is to get everything after the ? (the query string)
and then treat it as a list delimited by &, then you can use the List
functions to get each name=value pair, then you treat the pair as a =
delimited list.
--- Ben
-Original Message-
From: Cantrell, Adam [mailto:[E
Why not just return URL.pCode ?
Ade
-Original Message-
From: Cantrell, Adam [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 22:38
To: CF-Talk
Subject: please do my work for me
I want to extract a value from a URL variable which can show up anywhere in
the URL. Here are some examples
13 matches
Mail list logo