weblogin/signup.php

58 lines
1.8 KiB
PHP
Raw Permalink Normal View History

2023-01-27 10:57:08 +00:00
<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="utf-8">
<title>Regisztráció</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form action="signup-check.php" method="post">
<h2>Regisztráció</h2>
<?php if (isset($_GET['error'])) { ?>
<p class="error"><?php echo $_GET['error']; ?></p>
<?php } ?>
<?php if (isset($_GET['success'])) { ?>
<p class="success"><?php echo $_GET['success']; ?></p>
<?php } ?>
<label>Név</label>
<?php if (isset($_GET['name'])) { ?>
<input type="text"
name="name"
placeholder="Teljes név*"
value="<?php echo $_GET['name']; ?>"><br>
<?php }else{ ?>
<input type="text"
name="name"
placeholder="Név"><br>
<?php }?>
<label>Felhasználónév</label>
<?php if (isset($_GET['uname'])) { ?>
<input type="text"
name="uname"
placeholder="Felhasználónév*"
value="<?php echo $_GET['uname']; ?>"><br>
<?php }else{ ?>
<input type="text"
name="uname"
placeholder="Felhasználónév*"><br>
<?php }?>
<label>Jelszó</label>
<input type="password"
name="password"
placeholder="Jelszó*"><br>
<label>Jelszó ismét</label>
<input type="password"
name="re_password"
placeholder="Jelszó ismét*"><br>
<button type="submit">Regisztráció</button>
<a href="index.php" class="ca">Van már fiókja?</a>
</form>
</body>
</html>