salam agan" bantuin dong ini script dapet peringatan waring masalah.n apa ya? "<?php $email=$_POST['email']; $password=md5($_POST['password']); $query=mysql_query("select * from tbl_user where email='$email' and password='$password'"); $cek=mysql_num_rows($query); $row=mysql_fetch_array($query); $id_user=$row['id_user']; if($cek){ $_SESSION['id_user']=$id_user; header('Location:home.php'); }else{ ?> <div id="main"> <a name="TemplateInfo"></a> <blockquote> <p></p> <p><font color="#FF0000">Username atau Password anda salah!!</font>. silahkan ulangi Login</p> <p></p> </blockquote> </div> <?php } ?>" ini pesan.n Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\temanonline\temanonline\index.php:36) in C:\xampp\htdocs\temanonline\temanonline\login.php on line 12 | |||
yg "header('Location:home.php');" diganti "echo "<script>document.location=''home.php;</script>";" | |||
"<?php .. itu didepan emang ada tanda petiknya ya? ane cuman iseng aja loh.. |
Abdullah Syukur 29 Jun, 2013
-
Source: http://www.facebook.com/groups/35688476100/?id=10151723171561101
--
Manage subscription | Powered by rssforward.com
Tidak ada komentar:
Posting Komentar