I am trying to fix an existing code. I am not sure what "#CGI.SCRIPT_NAME#" there for. If someone could give me an explanation that would be great. Thanks.
CGI.SCRIPT_NAME returns the path of the current page. With self-posting forms like yours, CGI.SCRIPT_NAME is used so you do not have to hard-code the action page value. The advantage is the form will still work if you ever happen to change the name of your .cfm page.
If you are curious, dump the CGI scope to see all of the variables avaiable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.