Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to differ between user add.cgi and admin add.cgi

Quote Reply
How to differ between user add.cgi and admin add.cgi
 
Quote Reply
Re: [qes] How to differ between user add.cgi and admin add.cgi In reply to
Can you be more specific in what you want to do?

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] How to differ between user add.cgi and admin add.cgi In reply to
(Somehow my text was not printed in the first post...)

I would like to differ between the add.cgi for users and the add.cgi for me as a Admin.

I know I could change the templates for add.cgi (include_form) easily, but how could it be controlled if someone clicks on url/add.cgi and I create two different "include_forms" that the right form is loaded.
Quote Reply
Re: [qes] How to differ between user add.cgi and admin add.cgi In reply to
Are there any ideas for how to code that?
Quote Reply
Re: [qes] How to differ between user add.cgi and admin add.cgi In reply to
What about something like

<%if user.Status eq 'Administrator'%>
<%include oneform.html%>
<%else%>
<%include otherform.html%>
<%endif%>