אהלן, אני עובר על טופס התחברות ומשום מה הקוקיז נשלחים אך ורק ב FF ולא ב IE
הקוד:
PHP קוד:
<?
ob_start();
include "global/global.php";
echo '<center><meta http-equiv="Content-Type" content="text/html; charset=windows-1255">';
$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());
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 , האם הבעיה כאן? או מה בדיוק הבעיה? אשמח לקבל הסבר