Question

Hide Login Form

how can i make this log-in box disappear when the user is logged in and show again when logged out?

<!--BEGIN POPPYDOG.COM REGISTRATION WIDGET -->
<div style="width:100%; height:100%; border: inset; border-color: #00A6E8;">
<div id="pd_loginBox">
<script type="text/javascript" src="http://www.poppydog.com/ma/pd/pdutil.js"></script>
<form name="loginF" method="POST" action="http://www.poppydog.com/comreg/login.do">
<input type="hidden" name="action" value="w_lo2">
<input type="hidden" name="tiid" value="30362_reg">
<script type="text/javascript">
</script>
<table cellpadding="0" cellspacing="5" border="0" style="background-color: #000000">
<tr><td colspan="2">
<div id="pd_invalid">
<b style="font-size:smaller"><script type="text/javascript">showLoginMessage();</script></b>
</div>
</td></tr>
<tr><td><FONT COLOR="#00B5FC">username:</FONT></td><td><input type="text" name="user.userName" maxlength="50" size="20" style="color: #00B5FC; background-color: #000000"></td></tr>
<tr><td><FONT COLOR="#00B5FC">password:</FONT></td><td><input type="password" name="user.password" maxlength="50" size="20" style="color: #00B5FC; background-color: #000000"></td></tr>
<tr><td>*</td><td><input type="submit" value="login" style="background-color: #f5f5f5;border-bottom: 1px solid #dedede;border-top: 1px solid #eeeeee;font-weight: bold;color: #565656;cursor: pointer;padding: 3px 5px 4px 5px;">
<div style="margin-top:5px"><a href="#" onClick="return pd_reglinks_doForgot(30362);" ><FONT COLOR="#00B5FC">Forgot password?</FONT></a></div>
</td></tr>
</table>
</form>
</div>
<script type="text/javascript">
doPassLand(30362);
doForwardPassLand();
if (document.location.search.indexOf("pd_invalidLogin=")>-1)
pd_show("pd_invalid");
else
pd_hide("pd_invalid");
</script>
<!--END POPPYDOG.COM REGISTRATION WIDGET -->

Discussion is locked
Follow
Reply to: Hide Login Form
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Hide Login Form
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Comments

CNET Forums