lonnyo
asked on
How do I add an anchor to a url when the url also includes a coldfustion query variable?
I have the following url that I want to add an anchor to:
<a href="delete_employee_priv ilege.cfm? EmployeePr ivilegeID= #getPrivil eges.Emplo yeePrivile geID#">
I know with a normal url variable you just add #anchor at the end and it works, but it does not work with url variable is a coldfusion variable. Is there some syntax that will make this work in this situation
<a href="delete_employee_priv
I know with a normal url variable you just add #anchor at the end and it works, but it does not work with url variable is a coldfusion variable. Is there some syntax that will make this work in this situation
<table>
<!--- Setup table headers --->
<tr>
<th><a name="anchor"></a>Options</th>
<th>Order</th>
<th>Privileged</th>
<th>Add/Remove Privilege</th>
</tr>
<cfoutput query="getPrivileges" group="Privilege">
<!--- cfif below will alternate background color in the table row --->
<tr <cfif #currentrow# mod 2 gt 0>bgcolor="##CFDEB1"</cfif>>
<td>#Privilege#</td>
<td class="alignCenter">#Sequence#</td>
<!--- Determine if Employee Privilege Exists --->
<cfif GivePrivilege IS 1>
<cfset IsPrivileged = "yes">
<cfelse>
<cfset IsPrivileged = "no">
</cfif>
<td class="alignCenter">#IsPrivileged#</td>
<td class="alignCenter">
<!--- Deterimine whether to add or remove privilege --->
<cfif GivePrivilege IS 1>
<a href="delete_employee_privilege.cfm?EmployeePrivilegeID=#getPrivileges.EmployeePrivilegeID#">
Remove Privilege</a>
<cfelse>
<a href="add_employee_privilege.cfm?EmployeeID=#URL.EmployeeID#&PrivilegeID=#getPrivileges.PrivilegeID#">
Add Privilege</a>
</cfif>
</td>
</tr></cfoutput>
</table>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER