Show or Hide Image on Yes or Not?
Posted: Tue Jul 06, 2010 1:35 pm
Hi all, I need show an image depending on yes or not, but the problem after it show on doesn't go way and both keep in the screen.
i need to hide one of then.
this is my code:
if($_SESSION['userstate']='yes')
{
/echo "<img src='images/login.gif'>";
}
if($_SESSION['cback']='no')
{
// echo "<img src='images/logoff.gif'>";
}
thanks in advance.
i need to hide one of then.
this is my code:
if($_SESSION['userstate']='yes')
{
/echo "<img src='images/login.gif'>";
}
if($_SESSION['cback']='no')
{
// echo "<img src='images/logoff.gif'>";
}
thanks in advance.