Forums

This topic is locked

Help Me Rhonda

Posted 17 Apr 2003 01:51:22
1
has voted
17 Apr 2003 01:51:22 Ken Dobson posted:
Does anyone know if this is possible. If so, please enlighten me. I'm attempting to setup a delete function on a form, but I only want it to show up if a particular user has authenticated into the database. My code thus far, which isn't working, is this:

<%If Session("MM_UserAuthorization" = "HQ" then%>
<form name="form1" method="post" action="">
Test
</form>
<%End If%>

No matter who I log in as, I still see "Test". If you know the million dollar answer please advise.

Thank you so much!

Ken

Edited by - warmonger on 17 Apr 2003 01:52:10

Replies

Replied 17 Apr 2003 18:25:08
17 Apr 2003 18:25:08 Ken Dobson replied:
After sleeping on it last night, I figure it out. If anyone wants to know how it was supposed to look, here's the code to allow a specific user to have access to a delete record function:

<%If Session("MM_Username" = "whatever username you want to give access" Then%>
</p>
<form name="delete_record" method="POST" action="<%=MM_editAction%>">
<div align="right">
<input type="submit" name="Submit" value="Delete This Container">
<input type="hidden" name="MM_delete" value="delete_record">
<input type="hidden" name="MM_recordId" value="<%= RS1.Fields.Item("ID".Value %>">
</div>
</form>
<%End If%>

Reply to this topic