View Single Post
ישן 03-04-07, 02:40   # 13
Gold-System
Permanently Banned
 
מיני פרופיל
תאריך הצטרפות: Mar 2007
הודעות: 401

Gold-System לא מחובר  

הנה הקוד המלא -
קוד:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="he">
  <head>
    <title>CmsGold - מערכת ניהול תוכן מתקדמת</title>
    <form name='login' method='post' action='?op=verify'>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
    <link rel="stylesheet" type="text/css" href="style.css" />
  </head>
  <body dir="rtl">
   <div align="center">
    <form method="post" action="login.php">
      <h1>מערכת ניהול תוכן מתקדמת</h1>
      <div>
        <table>
          <tr>
            <td><label for="User">שם משתמש:</label></td>
            <td><input type="text" name="User" id="User" /></td>
          </tr>
          <tr>
            <td><label for="Pass">סיסמה:</label></td>
            <td><input type="password" name="Pass" id="Pass" /></td>
          </tr>
        </table>
        <button type="submit">התחבר</button>
      </div>
    </form>

  </body>
</html>

<? 
if(isset($_POST['user']))
if($_POST){
 $user1 = $_POST['User']; 
 $pass1 = $_POST['Pass']; 
 $user2 = "demo"; 
 $pass2 = "demo"; 
 if($pass1 == $pass2 && $user1 == $user2) { 
if(isset($_POST['user']))
 echo "התחברת למערכת בהצלחה."; 
 echo "<br>"; 
 echo "אנא המתן בבקשה, אתה מועבר.."; 
 }else{ 
 echo "שגיאה : שם משתמש או סיסמה שגויים"; 
 } 
 if(!$user1 || !$pass1) { 
 } 
} 
?>
  Reply With Quote