mvc-base/Views/user/register.php

17 lines
495 B
PHP
Executable File

<?php
if(isset($_SESSION ['reg'])){?>
<h2>Registrierung erfolgreich</h2>
<a href="/user/login">zur Anmeldung</a>
<?php
}else{
?>
<h2>Registrieren</h2>
<form action="/user/register" method="POST">
<p>Name: <input name="name" id="name"></p>
<p>mail: <input name="mail" id="mail"></p>
<p>Psw: <input type="password" name="psw" id="psw"></p>
<p>Nochmal: <input type="password" name="psw2" id="psw2"></p>
<p> <input type="submit" name="regi" value="register"></p>
</form>
<?php
}