<?php ?>
Signed-off-by: Aleksandar 'The Cobra' Widulski <thecobra@riseup.net>
This commit is contained in:
parent
61c4e9db97
commit
3844c6443d
|
@ -25,8 +25,6 @@
|
|||
$username_re = '/^[a-z_][a-z0-9_]{0,30}$/';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
$request_ip = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
if (!empty($_POST['username'])) {
|
||||
if (preg_match($username_re, $_POST['username']) === 1) {
|
||||
$ret = 0;
|
||||
|
@ -96,7 +94,7 @@
|
|||
<h1>Sign Up</h1>
|
||||
|
||||
<span class="red">* Required field</span>
|
||||
<form method="post" action='' . htmlspecialchars($_SERVER["PHP_SELF"])>
|
||||
<form method="post" action="<?php htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
|
||||
Username:
|
||||
<input type="text" name="username">
|
||||
<span class="red">* <?php echo $username_err; ?></span><br>
|
||||
|
|
Loading…
Reference in New Issue