Forums

This topic is locked

Show link only if moderator...

Posted 03 Apr 2003 08:17:34
1
has voted
03 Apr 2003 08:17:34 Mike Lindegarde posted:
I would like to have it so that when you login to the web page, if you are an administrator, links to administrative pages are show, but if you are just a general user, they are not. How could I do this in dreamweaver?

Replies

Replied 03 Apr 2003 11:22:52
03 Apr 2003 11:22:52 Vince Baker replied:
Create a recordset that checks to see if you are an administrator, if the recordset is empty you do not have admin rights.

Then, add the following above the button tag:

<% If not yourrecordset.EOF and not yourrecordset.BOF Then %>

and this after it:

<% End If %>

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic