login.php - AlineJo/Jupiter GitHub Wiki

<?php
session_start();

include_once("user.php");

if(isset($_POST["OK"]))
{
	
$user_name =$_POST["in_user_name"];
$password =$_POST["in_password"];
			


$u = new User();

$u->login($user_name,$password);

	
}


class LoginPage
{
  static function content()
{
	
echo <<< c1

<form action="login.php" method="POST">

Username : <input type="text" name="in_user_name" />

<br>
<br>

Password : <input type="password" name="in_password" />

<br>
<br>

<input type="reset" value="clear">

<button name="OK" > Login </button>

</form>

<button onclick="location.href='register.php'">Register</button>


c1;
	
}//function content()
  
	
}//class LoginPage

$L =new LoginPage();

$L->content();

?>
⚠️ **GitHub.com Fallback** ⚠️