just for the practice. I only made the login page when I decided to transfer my code to a good looking template. The problem with template is
that the login box is on the left side of main page...Here is what I want to do: I want the login box to dissapear whenever I login. I have
tried this approach, which btw doesn't work:
Code: Select all
if ($a=="true")
{
// login box disappear
}
else
{
// login box appear
}
gets refreshed $a loses its "true" value give to int earlier and it goes to the "else" part of loop... so no avail.
I have tried putting a switch statement too:
Code: Select all
Switch ($a)
{
case "true":
//login box disappear
break;
default:
//login box appear
}
Code: Select all
if ($a=="true")
{
// login box disappear
}
elseif ($a=="false")
{
// login box appear
}
cause the whole loop to NOT work everytime...
It is a logical problem... Can't figure out any way