- Beranda
- Komunitas
- Tech
- Website, Webmaster, Webdeveloper
[ask] Login Problem Di Internet Explorer, Mastah Help...


TS
casecortes
[ask] Login Problem Di Internet Explorer, Mastah Help...
Mastah2 sekalian, bantuin saya donk.....
Login saya gak berfungsi di internet explorer tetapi di mozzila ma chrome ok2..
<?php
include "header.php";
include "admin/koneksi.php";
$UserName = strtolower(strip_tags(@$_POST['UserName']));
$Password = strip_tags(@$_POST['Password']);
$login = @$_POST['login'];
$signin = "Sign in";
if ($login)
{
if ($UserName=="")
$erroruser = "Isilah Email Anda";
if (!preg_match("/^.+@.+..+$/", $UserName))
$erroruser = "Email Anda tidak valid";
if ($Password=="")
$errorpassword = "Isilah kata sandi Anda";
}
if ($UserName&&$Password)
{
$connect = mysql_connect("localhost","root","") or die;
mysql_select_db("interpakkp") or die;
$query = mysql_query ("SELECT * FROM member where Email = '$UserName'");
$numrows = mysql_num_rows($query);
if ($numrows != 0)
{
while ($row = mysql_fetch_assoc($query))
{
$dbUserName = $row['Email'];
$dbPassword = $row['Password'];
$dbCustName = $row['CustName'];
$dbCustID = $row['CustID'];
}
if ($UserName==$dbUserName&&md5;($Password)==$dbPassword)
{
$_SESSION['CustName']=$dbCustName;
$_SESSION['CustID']=$dbCustID;
print '<meta http-equiv="refresh" content="0;index.php">';
}
else
$errorpassword = "Password Wrong!";
}
else
$erroruser = "User haven't register!";
}
?>
</head>
<body>
<form method="post" action="signin.php">
<table width="100%" height="415" border="0">
<td>
<div id="sidenav"><?php include "sidenav.php"; ?></div></td>
<td valign="top"><div id="content">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="registertitle">Form Login </td>
</tr>
<tr>
<td><hr color="#FFFF66" size="2" width="85%" />
<br />
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0" class="logindetail">
<tr>
<td width="150" height="30">E-mail </td>
<td width="20"> </td>
<td class="registerrequiretext"><input name="UserName" type="text" size="30" value="<?php echo "$UserName"?>" />
<?php echo @$erroruser?></td>
</tr>
<tr>
<td width="150" height="30">Password </td>
<td width="20"> </td>
<td class="registerrequiretext"><input name="Password" type="password" size="30" />
<?php echo @$errorpassword?></td>
</tr>
<tr>
<td width="150" height="30"> </td>
<td width="20"> </td>
<td class="registerrequire"><input type="submit" name="login" value="Login" /></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><hr color="#FFFF66" size="2" width="85%" />
<br /></td>
</tr>
<tr>
<td align="center" id="navsidemenu"><a href="signup.php">Register new account?</a> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<br /></td>
</tr>
</table></td>
</tr>
</table>
<p>
<?php
include('footer.php');
?>
</p>
</form>
</div>
</body>
</html>
Terima kasih
Login saya gak berfungsi di internet explorer tetapi di mozzila ma chrome ok2..
Spoiler for pesan:
<?php
include "header.php";
include "admin/koneksi.php";
$UserName = strtolower(strip_tags(@$_POST['UserName']));
$Password = strip_tags(@$_POST['Password']);
$login = @$_POST['login'];
$signin = "Sign in";
if ($login)
{
if ($UserName=="")
$erroruser = "Isilah Email Anda";
if (!preg_match("/^.+@.+..+$/", $UserName))
$erroruser = "Email Anda tidak valid";
if ($Password=="")
$errorpassword = "Isilah kata sandi Anda";
}
if ($UserName&&$Password)
{
$connect = mysql_connect("localhost","root","") or die;
mysql_select_db("interpakkp") or die;
$query = mysql_query ("SELECT * FROM member where Email = '$UserName'");
$numrows = mysql_num_rows($query);
if ($numrows != 0)
{
while ($row = mysql_fetch_assoc($query))
{
$dbUserName = $row['Email'];
$dbPassword = $row['Password'];
$dbCustName = $row['CustName'];
$dbCustID = $row['CustID'];
}
if ($UserName==$dbUserName&&md5;($Password)==$dbPassword)
{
$_SESSION['CustName']=$dbCustName;
$_SESSION['CustID']=$dbCustID;
print '<meta http-equiv="refresh" content="0;index.php">';
}
else
$errorpassword = "Password Wrong!";
}
else
$erroruser = "User haven't register!";
}
?>
</head>
<body>
<form method="post" action="signin.php">
<table width="100%" height="415" border="0">
<td>
<div id="sidenav"><?php include "sidenav.php"; ?></div></td>
<td valign="top"><div id="content">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="registertitle">Form Login </td>
</tr>
<tr>
<td><hr color="#FFFF66" size="2" width="85%" />
<br />
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0" class="logindetail">
<tr>
<td width="150" height="30">E-mail </td>
<td width="20"> </td>
<td class="registerrequiretext"><input name="UserName" type="text" size="30" value="<?php echo "$UserName"?>" />
<?php echo @$erroruser?></td>
</tr>
<tr>
<td width="150" height="30">Password </td>
<td width="20"> </td>
<td class="registerrequiretext"><input name="Password" type="password" size="30" />
<?php echo @$errorpassword?></td>
</tr>
<tr>
<td width="150" height="30"> </td>
<td width="20"> </td>
<td class="registerrequire"><input type="submit" name="login" value="Login" /></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><hr color="#FFFF66" size="2" width="85%" />
<br /></td>
</tr>
<tr>
<td align="center" id="navsidemenu"><a href="signup.php">Register new account?</a> </td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<br /></td>
</tr>
</table></td>
</tr>
</table>
<p>
<?php
include('footer.php');
?>
</p>
</form>
</div>
</body>
</html>
Terima kasih
0
852
Kutip
3
Balasan


Komentar yang asik ya
Urutan
Terbaru
Terlama


Komentar yang asik ya
Komunitas Pilihan