I need to pass a dynamic variable using cfhttp.
<cfhttp method="get" url="#cgi.server_name#/page.cfm?pageid=#pageid#" resolveurl="Yes">
Returns the error:
The 3 parameter of the Mid function, which is now -8, must be a non-negative integer.
This code returns the same error.
<cfhttp method="post" url="#cgi.server_name#/page.cfm" resolveurl="Yes">
Any assistance would be appreciated.
You don't say what line in your code is throwing the error...??? Try putting a
before the first line and a
after the CFHTTP call. That will help you to understand if there is something wrong with the CGI var you are trying to pass as part of the URL, and will also show you whether the CFHTTP gets executed and what the return status is. Let us know how that works out and we can help you with further debugging.