first sorry for my bad english, i live in Germany.
I want create a User Control Panel. First, i have created the Login Page with HTML and CSS.
<?php
require_once("./config/config.php");
session_start();
?>
<!DOCTYPE html>
<html lang="de">
<head>
<!-- | Titel | -->
<title>Virtual Reallife - Control Panel</title>
<!-- | Meta Tag | --->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- | Styles | -->
<link rel="stylesheet" href="style/css/bootstrap.min.css"/>
<link rel="stylesheet" href="style/css/login.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div id="logo"></div>
<div class="top-content">
<div class="inner-bg">
<div class="container">
<div class="row">
<div class="col-sm-6 col-sm-offset-3 form-box">
<div class="form-top">
<div class="form-top-left"><p><b>Bitte melde dich mit deinen In-Game Daten an</b></p>
</div>
</div>
<div class="form-bottom">
<form role="form" action="" method="post" class="login-form">
<div class="form-group">
<label class="sr-only" for="form-username">Username</label>
<input type="text" name="form-username" placeholder="Name.." class="form-username form-control" id="form-username">
</div>
<div class="form-group">
<label class="sr-only" for="form-password">Password</label>
<input type="password" name="form-password" placeholder="Passwort.." class="form-password form-control" id="form-password">
</div>
<button type="button" name="anmelden" class="btn btn-success">Anmelden</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script scr="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script scr="style/js/bootstrap.min.js"></script>
</body>
</html>
Now my Problem is, how to login with my In-Game Account in the User Control Panel? I know, that i must create a function for the Login Button and for the 2 Fields (Name, Password)