hello i'm following specific php code for login , and i tried to write html code to handle it or to handle the php code with data from users , but the html code doesn't work properly
here is part of the php code that i'm trying to follow :
require_once 'Functions.php';
$fun = new Functions();
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$data = json_decode(file_get_contents("php://input",true));
if(isset($data -> operation)){
$operation = $data -> operation;
if(!empty($operation)){
if ($operation == 'login') {
if(isset($data -> user ) && !empty($data -> user) && isset($data -> user -> email) && isset($data -> user -> password)){
$user = $data -> user;
$email = $user -> email;
$password = $user -> password;
echo $fun -> loginUser($email, $password);
and my html code :
<form action="" method="post">
<label>email :</label>
<input type="text" name="email"/><br />
<label>Password :</label>
<input type="password" name="password"/><br/>
<input type="submit" value=" Submit "/><br />
</form>
what im doing wrong with html code ??