Ow, for the logout.php I already have it.....after logout, it'll back to location:home.php?logout == 1.
What I wanted is, something that looks like the forum....
When you logged in, it'll show the name....(that's mean, change toward the home.php....), from what stated before...
<?
if(!session_is_registered("ses_un")){
echo "<td width=\"218\" height=\"28\"></td>";
echo "<td colspan=\"2\" background=\"images/image10.gif\" width=\"541\" height=\"28\"></td>";
echo "</tr>";
echo "<tr>";
echo "<td background=\"images/image11b.gif\" width=\"218\" height=\"340\" valign=\"top\">";
echo "<form name=\"form1\" method=\"post\" action=\"login_cek.php\">";
echo "<table width=\"200\" border=\"0\" align=\"right\">";
echo "<tr>";
echo "<td width=\"100\" class=\"text\">E-mail : </td>";
echo "<td width=\"100\"><input name=\"e_mail\" type=\"text\" class=\"text\" size=\"15\" maxlength=\"40\">";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td class=\"text\">Password : </td>";
echo "<td><input name=\"pass\" type=\"password\" class=\"text\" size=\"6\" maxlength=\"6\"></td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\" class=\"text\" align=\"center\" height=\"40\"><input name=\"Submit\" type=\"submit\" class=\"text\" id=\"Submit\" value=\"Login\"></td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=\"2\" class=\"text\">» <a href=\"register.php\">Sign Up</a></td>";
echo "</tr>";
echo "</table>";
echo "</form></td>";
echo "<td colspan=\"2\" width=\"50%\" height=\"340\" valign=\"top\" class=\"text\">";
if($success==1) echo "<blockquote><br>Thank you for the registration.<br><br></blockquote>";
if($logout==1) echo "<blockquote><br>Thank You for Visiting Our Website.<br><br></blockquote>";
}
?>
So, how to make a if session_is_registered? any idea?
Anyway, thx for the help 😃.