
10-06-2007, 21:01
|
|
|
|
חבר מתאריך: 24.01.06
הודעות: 9
|
|
|
הקוקיז נשלחים אך ב FF, למה?!
אהלן, אני עובר על טופס התחברות ומשום מה הקוקיז נשלחים אך ורק ב FF ולא ב IE 
הקוד
קוד PHP:
<? ob_start(); include "global/global.php"; echo '<center>'; $submit = $_POST['submit']; $username = $_POST['username']; $password = $_POST['password'];
if($submit) { $sql = " SELECT * FROM members WHERE username = '$username' AND password = '$password' "; $result = mysql_query($sql) or die("בעייה : " . mysql_error()); while ($row = mysql_fetch_array($result)) { $username = $row["username"]; $password = $row["password"]; $access = $row["access"]; } if(!mysql_num_rows($result)) { echo "אחד מהשדות שהזנת שגויים, נא חזור ובדוק שנית"; exit(); } setcookie("user", $username,time() + 3600); setcookie("pw", $password, time() + 3600); setcookie("access", $access, time() + 3600); echo "<meta http-equiv='refresh' content='0; url=index.php'>"; } ob_end_flush(); ?>
אינו מציג שום שגיאה אך לפני כן הקובץ היה על UTF-8 ויצר בעיות אז המרתי אותו ל ANSI, האתר שלי בנוי על UTF-8 , האם הבעיה כאן? או מה בדיוק הבעיה? אשמח לקבל הסבר
|