Andy, Careful, that will give you the server-side template path, not the web-page path:
GetTemplatePath() ==> D:\sites\www.foo.bar\index.cfm CGI.script_name = "/foo.bar/index.cfm" Also, GetTemplatePath is not really used anymore in favor of GetBaseTemplatePath() (and GetCurrentTemplatePath()). ....................... Ben Nadel Web Developer Nylon Technology 350 7th Avenue Floor 10 New York, NY 10001 212.691.1134 212.691.3477 fax www.nylontechnology.com "You know, like nunchuck skills, bowhunting skills, computer hacking skills... Girls only want boyfriends who have great skills." - Napoleon Dynamite -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 9:23 AM To: CF-Talk Subject: RE: cgi.scriptname and url parameters If you just want to submit the page to itself (without the URL keys) then use this as your "thispage": <cfset thisPage = GetFileFromPath(GetTemplatePath())> This variable will output only the file name for whatever page it's contained within. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: kurt schroeder [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 09, 2006 8:17 AM To: CF-Talk Subject: cgi.scriptname and url parameters I notice an issue with using cgi.scriptname as the Action of a form. It will include the url variables of the previous link (sometimes?). Is there a reasion for this and is there a way to turn it off. My diagnostics do not show the url parameters as part od the cgi.scriptname. The only other thing i'm doing that is unusual on this form is that i'm submitting the form using onChange=form.submit(); for fields on the form. THanks KES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239896 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

