View Single Post
ישן 08-02-06, 16:58   # 1
Yehuda-d.com
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: פ"ת
הודעות: 1,225

Yehuda-d.com לא מחובר  

בעיה בטפסים..

בעיה בפלט של הסיסמא והשם משתמש אני לא מצליח להשים אותם..
הינה הקוד:
PHP קוד:

<?php


session_start
();
require(
'configure.php');
$query=mysql_query("SELECT * FROM  admins WHERE user='".$_POST['user']."'") or die (mysql_error());
$rec=mysql_fetch_array($query);
if (!
$_POST['user'] && !$_POST['pass']) {
echo 
"Password Incorrect! <a href=\"index.php\">Try Again!</a>";
} else {
if ((
$_POST['user']==$rec['user']) && ($_POST['pass']==$rec['pass'])) {
$_SESSION['id']=$rec['id'];
$_SESSION['user']=$rec['user'];
$_SESSION['pass']=$rec['pass'];
if ((isset(
$_SESSION['id'])) && (isset($_SESSION['user'])) && (isset($_SESSION['pass']))) {
?>
<frameset cols="100%, 175">
<frameset rows="20, 83">
         <frame name="logo" src="logo.php" noresize="yes" />
         <frame name="main" src="main.php" noresize="yes" />
    </frameset>
         <frame name="menu" src="menu.php" noresize="yes" />
     </frameset>
<?php
} else {
?>
<meta http-equiv="Refresh" content="0; URL=index.php">
<?php
}
} else {
echo 
"Password Incorrect! <a href=\"index.php\">Try Again!</a>";
}
}

?>
אפשר גם כאן:
http://mizrahit-m.net/radio/dash/root/default.phps


תודה לעוזרים

Last edited by Yehuda-d.com; 08-02-06 at 17:02..
  Reply With Quote