Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Aberavon] Create an IF statement to recognize whether user is logged in

Quote Reply
Re: [Aberavon] Create an IF statement to recognize whether user is logged in In reply to
You can use:

<%ifnot auth_no_authentication%>
<%if use_cookie%>
<%if Username and Username ne 'default'%>
<a href="db.cgi?do=search_results&db=jdamembers&&ls=A&col=Company_Name&sb=Company_Name">A</a>
<%else%>
<a href="db.cgi?do=search_results&db=jdamembers&uid=default&ls=A&col=Company_Name&sb=Company_Name">A</a>
<%endif%>
<%else%>
<a href="db.cgi?do=search_results&db=jdamembers&sid=<%session_id%>&ls=A&col=Company_Name&sb=Company_Name">A</a>
<%endif%>
<%endif%>

TheStone.

B.
Subject Author Views Date
Thread Create an IF statement to recognize whether user is logged in Aberavon 3547 Mar 13, 2003, 3:42 PM
Thread Re: [Aberavon] Create an IF statement to recognize whether user is logged in
604 3469 Mar 13, 2003, 5:19 PM
Post Re: [TheStone] Create an IF statement to recognize whether user is logged in
Aberavon 3446 Mar 13, 2003, 8:30 PM