예제 #1
0
								   </div>
			
								  
 <form action="Log_in.php" class="form-horizontal" role="form" method="POST">
		<?php 
if ($_SERVER["REQUEST_METHOD"] == 'POST') {
    if (isset($_POST['login'])) {
        $email = $_POST['email'];
        $pwd = $_POST['pwd'];
        if (empty($email) || empty($pwd)) {
            echo "<span style='color:red' >Both Field Must Be Required!!!</span>";
        } else {
            $password = MD5($pwd);
            $user->setPass($password);
            $user->setEml($email);
            $login = $user->login();
            if ($login) {
                header("location:profile_page.php");
            } else {
                echo "<span class='loggin'> invalid email and password !!!</span>";
            }
        }
    }
}
?>
						   



									   <div class="form-group has-feedback has-feedback-right">
										    <label class="control-label col-md-3" for="email">Email:</label>