19-12-2008, 18:21
|
|
|
חבר מתאריך: 27.10.07
הודעות: 4
|
|
בעית קוקיז עם הקידוד UTF-8
קוד PHP:
Warning: Cannot modify header information - headers already sent by (output started at /home/david1/domains/pizuz.net/public_html/utf.php:1) in /home/david1/domains/pizuz.net/public_html/utf.php on line 3
קוד PHP:
<?php if(isset($_POST['loginsubmit'])) { $password = md5($_POST['l_password']); $password += "tms2790"; $password = md5($password); require "db.php"; $result = mysql_query("Select * from `rmb_users` where `username`='".$_POST['l_username']."' AND `password`='".$password."'"); $num_rows = mysql_num_rows($result); if($num_rows > 0) { setcookie("rmb_username",$_POST['l_username'],time()+50000); setcookie("rmb_password",md5($_POST['l_password']),time()+50000); print "<script>location.href='index.php';"; } else { print "שם משתמש וסיסמא שגויים.. <a href=\"index.php\">לחץ כאן על מנת לחזור לעמוד הראשי"; } } if($_GET["act"] == "logout") { setcookie("rmb_username",NULL,time()-1); setcookie("rmb_password",NULL,time()-1); print "<script>location.href='index.php';"; } ?>[PHP]
[/PHP]
איך אני פותר את זה?
תודה לכולם
|