I am usin g the following code to get the username when users load the home page on our intranet.
I then have a hidden field where i store the value of ValImage like so
The page has 2 tables in it and the tables have links to other pages, the first table has 6 links and the second table 4 links. and I want to show either of the tables dependent on whether the username is stored in a DB table or not i.e
IF username exists then
show table 1
Else
Show table 2
Could someone explain how i can use the username to query a DB table (tblUsrs) so as to make this happen
Regards
Paul
Code:
<% '***Start Function ValImage
ValImage = (ucase(Request.ServerVariables("LOGON_USER")))
ValImage = Replace(ValImage, "SOMEWHERE-UK\","")
'***End Function ValImage
%>
I then have a hidden field where i store the value of ValImage like so
Code:
<input name="hidName" type="hidden" id="hidName" value="<%=ValImage%>">
The page has 2 tables in it and the tables have links to other pages, the first table has 6 links and the second table 4 links. and I want to show either of the tables dependent on whether the username is stored in a DB table or not i.e
IF username exists then
show table 1
Else
Show table 2
Could someone explain how i can use the username to query a DB table (tblUsrs) so as to make this happen
Regards
Paul