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

Dynamic link based on cookie...

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
[tt]
Here's what I'm trying to do.
I have a results page with a "Delete" link at the end of each entry. What I'm trying to do is make the "Delete" link visible ONLY to those who created the entries. But I keep running into syntax errors.. I know I've seen this questions posted here b4 but can't find a solution.

By the way, I'm working with cookies


Here's my code
<% if request.cookies(&quot;user&quot;)(&quot;firstname&quot;) = rsResults(&quot;Dataenteredby&quot;) And request.cookies(&quot;user&quot;)(&quot;lastname&quot;) = rsResults(&quot;Dataenteredby&quot;) then
response.write <a href=&quot;deleterecords.asp?id=<%=rsResults(&quot;id&quot;)%>&quot;)'>Delete</a>
%>


The rsResults(&quot;Dataenteredby&quot;) field was populated on the entry form by the cookies (&quot;firstname&quot;) & (&quot;lastname&quot;)



Thanks in advance all.
[tt]&quot;A Successful man is one who can build
a firm foundation with the bricks
that others throw at him&quot;
[/tt]

star.gif
star.gif
star.gif
star.gif

 
Try this:

<%
if request.cookies(&quot;user&quot;)(&quot;firstname&quot;) = rsResults(&quot;Dataenteredby&quot;) And request.cookies(&quot;user&quot;)(&quot;lastname&quot;) = rsResults(&quot;Dataenteredby&quot;) then
response.write &quot;<a href=&quot;&quot;deleterecords.asp?id=&quot; & rsResults(&quot;id&quot;) & &quot;&quot;&quot;>Delete</a>&quot;
%>


Choo Khor
choo.khor@intelebill.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top