הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   האם הגיוני שהקוקיז יתקבלו ב FF וב IE לא? (https://hosts.co.il/forums/showthread.php?t=47302)

BlueNosE 11-06-07 16:05

קרה לי בעבר, הבעיה שלך פשוטה: הטופס לא מתקבל כמו שצריך בIE.
בIE הSUMBIT לא נשלח בתור איבר במערך $_POST ולכן אתה לא יכול לבדוק if submit כי זה לא יעבוד.

X-T 11-06-07 17:01

ציטוט:

נכתב במקור על ידי BlueNosE (פרסם 497555)
קרה לי בעבר, הבעיה שלך פשוטה: הטופס לא מתקבל כמו שצריך בIE.
בIE הSUMBIT לא נשלח בתור איבר במערך $_POST ולכן אתה לא יכול לבדוק if submit כי זה לא יעבוד.

כנראה שזו לא הבעיה... הקוד עדיין לא פועל, הקוד:
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'];
$username htmlspecialchars($usernameENT_QUOTES);
$password htmlspecialchars($passwordENT_QUOTES);

$sql " SELECT * FROM members WHERE username = '$username' AND password = '$password' "
$result mysql_query($sql) or die("בעייה : " mysql_error()); 
if(!
mysql_num_rows($result)) {
echo 
"אחד מהשדות שהזנת שגויים, נא חזור ובדוק שנית";
}else{
setcookie("user"$username,time() + 3600);
setcookie("pw"$passwordtime() + 3600);
setcookie("access"$accesstime() + 3600);
echo 
"<meta http-equiv='refresh' content='0; url=index.php'>";
}
ob_end_flush();
?>


Elad-A 11-06-07 18:25

תנסה את המערכת שלך על שרת אחר..

X-T 12-06-07 06:31

OK, היום אני יעביר את המערכת לשרת אחר, נקווה שיסתדר,
תודה לעוזרים.

RS324 13-06-07 00:17

כמה שטויות באשכול אחד... יש בעיות מסויימות עבור SETCOOKIE
הנה קטע מתוך PHP.NET

ציטוט:

the "bug" that prevents cookies from working properly with Windows XP and Internet Explorer 6 seems to be a more strict following of the cookie specifications. This part in particular:

Only hosts within the specified domain can set a cookie for a domain and domains must have at least two (2) or three (3) periods in them to prevent domains of the form: ".com", ".edu", and "va.us". Any domain that fails [sic] within one of the seven special top level domains listed below only require two periods. Any other domain requires at least three. The seven special top level domains are: "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT".

localhost should not work. Neither should localhost.localdomain. Though, it may be a bug that 127.0.0.1 does not work, even despit the fact that 127.0.0.1 is not a domain name.
בד"כ הפתרון הוא לעשות COOKIES דרך הפונקציה header.

X-T 13-06-07 08:39

חחח כמה מוזר, זה הסתדר לי על השרת השני שהעלתי לשם את האתר ולא עשה שום בעיות, בכל אופן הייתי רוצה לדעת איך לפתור את הבעיה גם על השרת הקודם ( למרות שאני לא מתכוון לחזור אליו ).


כל הזמנים הם GMT +2. הזמן כעת הוא 11:41.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ