0

I want to hide the table when the user is logon.

This is the code;

<div style="padding-left:20px">

<div id="welcome">welcome</div> //* I want to view this when it logon.

<table id="logon" style="height: 165px;" border="0" cellspacing="0" cellpadding="0" width="794">
<tbody>
<tr>

<form name="logon">

<input type="submit" name="Submit" class="button" value="Log In" />

</form>

</tr>
</table> //* this table I want to hide.
</div>
3
Contributors
3
Replies
5
Views
7 Years
Discussion Span
Last Post by arunmagar
0
<head>
<script type="javascript">
function JSHideForm()
{
  document.getElementById('hideform').style.display ='none';
}
</script>
</head>
<div id ="hideform">
<table id="logon" style="height: 165px;" border="0" cellspacing="0" cellpadding="0" width="794">
<tbody>
<tr>
<form name="logon">

<input type="submit" name="Submit" class="button" onClick="JSHideForm()" value="Log In" />

</form>

</tr>
</table>
</div>
0

I got it thank you rajarajan07, I have same problem regarding with that How to hide that table when it loads after log in when I return to that page?.
The problem is when I return to that page it says log-out and still the table is there. I want that table hide.

0

hi,
you can use session to get your solution.
Please refer
this link
http://www.w3schools.com/php/php_sessions.asp

I think this help you out.
At very first you have to check is there any session exist or not.if there is any session exist with the name you given then do not show table else show table.

If you still have doubt please let me know.

thanks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.