Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error when using cgi.script_name .... 1

Status
Not open for further replies.

numbered

Technical User
Jun 10, 2002
54
0
0
CA
I'm running MX and I'm getting this error with this code:

ERROR:
Complex object types cannot be converted to simple values.

CODE:
<CFSET url = &quot;#cgi.script_name#&quot;>
<cfoutput>#url#</cfoutput>

The code will work if I use <cfoutput>#cgi.script_name#</cfoutput> but, I need to store that value into a variable. How would I do this?
 
If you are using cfmx url is a reserved word.

use something else then url and it should work
 
Thanks Idlost! That was the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top