Page 1 of 1
stuck in the login area
Posted: Sun Aug 30, 2009 9:18 pm
by r4m0n
i have intalling PHP script in my domain i-bloggie.co.cc,
the installation run smoothly, but when i want to check my site i getting
problem to logging in,i can't acces my admin
area(i-bloggie.co.cc/fadmin)...
i've input the right user and password, but still i can't go to my
admin-area, i'm stuck on my admin login page always and always.
Confuse,then i try to install it on free web hosting(running PHP 5.2.10), and
it's work, everything performs good.
i contact the webhosting, but they can't help too much.
I appreciate your helps
Re: stuck in the login area
Posted: Sun Aug 30, 2009 10:49 pm
by r4m0n
this is the login form code
Code: Select all
<?
include "../konfig.php";
//include "track.php";
$cklog=$_POST[cklog];
$admuser=$_POST[admuser];
$admpass=$_POST[admpass];
if ($cklog=='LOGIN'){
koneksi();
$sql= "SELECT * FROM su_dtadmin WHERE admname='$admuser' AND admpass='$admpass'";
$qry=mysql_query( $sql ) or die("Query Salah:" .mysql_error());
$data=mysql_fetch_array($qry);
if (!empty($data)){
session_register("admlogin");
session_register("admuser");
session_register("admnama");
session_register("admlastlog");
session_register("admlastip");
$admlogin=md5($data["admname"]);
$admuser =$data["admname"];
$admnama =$data["admfname"];
$admlastlog=$data["lastlogin"];
$admlastip=$data["lastip"];
header("location:main.php");
exit;
}else{
$errorlog="ERROR LOGIN:<br>Salah UserId Atau Password";
}
}
echo "<html><head>";
echo "<title>Login Admin Area - $nama_situs</title>";
echo "</head><body>";
echo "<p> </p><p> </p><p> </p>";
echo "<form method='POST' action='index.php'>";
echo "<table align='center' bgcolor='#C0FFFF' $tbl_style>";
echo "<tr><td colspan=2 align='center' ><font color='red'>$errorlog</font></td></tr>";
echo "<tr><td colspan=2 ><b>LOGIN DULU DONG</b></td></tr>";
echo "<input type='hidden' name='cklog' value='LOGIN'>" ;
echo "<tr><td > UserId </td><td bgcolor='#FFFFFF'>
<input type='text' name='admuser' $frm_style></td></tr>";
echo "<tr><td > Password </td><td bgcolor='#FFFFFF'>
<input type='password' name='admpass' $frm_style></td></tr>";
echo "<tr><td colspan=2 align='right' >
<input type='submit' value=' LOGIN ' $btn_style></td></tr>";
echo "</table>";
echo "</form>";
echo "</body><html>";
?>
Re: stuck in the login area
Posted: Sun Aug 30, 2009 11:10 pm
by Benjamin

Moved to PHP - Code.
Please refer to your error log and provide the details.
Re: stuck in the login area
Posted: Mon Aug 31, 2009 1:32 am
by r4m0n
the problem is, i can't go to admin area, i'm still in the login page,
go to my site and try to login
user:admin
pass:admin
Re: stuck in the login area
Posted: Mon Aug 31, 2009 3:12 am
by Benjamin
How do you know those are correct? Have you checked the error log?