Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg/exercises/projekt/

changeowned.php
classes/
createcard.php
database.php
forgot.php
incl/
index.php
leaderboard.php
lineup.php
login.php
logout.php
newpass.php
otherlineup.php
playerinfo.php
projekt.zip
skapatabeller.php
verify.php

forgot.php

43 lines UTF-8 Windows (CRLF)
<?php 
$title 
"Glömt Lösenord";
$pageId "forgotpass";
$pageStyle '
figure { 
 border-radius: 10px;
 border-color:#333;
 box-shadow: 10px 10px 5px #888;
}'
;
require_once(
"classes/user.php");
$user = new User($dbconn);
include(
"incl/header.php"); 

?> 
<?php
if (!empty( $_POST["email"]) && !empty( $_POST["email"])
) {
$email htmlspecialchars($_POST["email"], ENT_QUOTES,'UTF-8');
$password htmlspecialchars($_POST["password"], ENT_QUOTES,'UTF-8');
$user->forgot($email$password);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div>
        <h1>Glömt Lösenord</h1>
        <form method="post" action="">
            <br>
            <input type="text" name="email" placeholder="E-post" required><br>
            <br>
            <input type="password" name="password" placeholder="Nytt Lösenord" required><br>
            <br>
            <input type="submit" name="forgot">
        </form>
    </div>
</body>
</html>