diff options
| author | oweissbarth | 2014-03-11 20:02:10 +0100 |
|---|---|---|
| committer | oweissbarth | 2014-03-11 20:02:10 +0100 |
| commit | a9d708cf9638686d81caf2cc9534a5d34dd63b7e (patch) | |
| tree | 67abfa3c17aa534c638bc6431263a01ce99be3ec /www/register.php | |
| parent | ed809aa402ef6b97a129f06d2ba2e7a97101291f (diff) | |
| download | files.iamfabulous.de-a9d708cf9638686d81caf2cc9534a5d34dd63b7e.tar.gz | |
Added errors for register-form. Gave errors more room
Diffstat (limited to 'www/register.php')
| -rw-r--r-- | www/register.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/register.php b/www/register.php index daf6afa..e4c4b79 100644 --- a/www/register.php +++ b/www/register.php @@ -19,6 +19,21 @@ <div class="register-area"> <h1 class="register-area"> Register </h1> + <div class="register-area" id="register-info-bar"> + <?php if(isset($_GET['reason']) && $_GET['reason'] == 'password'){ + echo '<h1 id="register-error">Passwords don't match</h1> + '; + }elseif(isset($_GET['reason']) && $_GET['reason'] == 'encoding'){ + echo '<h1 id="register-error">The password contains unsupported characters</h1> + '; + }elseif(isset($_GET['reason']) && $_GET['reason'] == 'database'){ + echo '<h1 id="register-error"> Internal Error. Please contact admin</h1> + '; + }elseif(isset($_GET['reason']) && $_GET['reason'] == 'prohibited'){ + echo '<h1 id="register-error">Activation of your account is prohibited</h1> + '; + }?> + </div> <form id="register-form" action="/register" method='post'> <input type="text" placeholder="username" name="username" id="username-input" class="register-input" required> |
