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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<a href> query string problem

Status
Not open for further replies.

Davo67

Technical User
Jul 3, 2001
17
GB
Hi
I'm trying to pass a variable called UUID via a <a href> tag. The UUID is a unique indentifier using the createuuid() function and therefore is in the UUID format.

The code I'm using is this
<a href=&quot;../history/history.cfm?uuid=#uuid#&quot;>amend</a>

When I hover the mouse over the link the browser the status bar shows
history/history.cfm?uuid=A30F1859-F5d0-11D4- ...etc which is correct.

The page receiving the string has
<CFSET uuid=url.uuid> as the first line.

When I click the link I get an error
---------------------------------------------------
Error Diagnostic Information
An error occurred while evaluating the expression:
uuid = url.uuid
Error near line 1, column 7.
---------------------------------------------------
When I click the back button and click the link again it works perfectly!!

This is happening on every record. It creates an error the first time but works the second time??!!!

why????

Please help :eek:(
 
I wonder if the minus signs in the UUID are causing trouble. Try this:

Code:
<cfoutput>
   <cfset uuid = '#URL.UUID#'>
</cfoutput>

-- or --

Code:
<cfoutput>
   <cfset temp = SetVariable( uuid, '#URL.UUID#'>
</cfoutput>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top