Url variables are passed in the url scope. You variable would be
url.productid or url.userid.
In ColdFusion scoping is optional. You could access url parameters without
any scoping at all.
Also in CF 4.5+ all url variables are stored in a structure, so
#StructKeyList(url)# will output all url variables.
jon
----- Original Message -----
From: "John J McGowan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 23, 2001 6:20 PM
Subject: Newbie Question Post Args / Search Args
> How do you access Arguments passed to the server in a URL. (GET args or
SEARCH args is what I usually call them)
>
> for example...
>
> http://localhost/index.cfm?productid=23&userid=2
>
> I'm evaluating ColdFusion, and have come across this issue and I can't
seem to find the answer anywhere.
>
> Seems like it would be a simple thing to do. Since a simple
Form.productid would retreive the appropriate POST argument from a form.
>
> Thanks for any help,
> John
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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