aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authoradam <adam@>2021-01-29 02:16:01 +0200
committeradam <adam@>2021-01-29 02:16:01 +0200
commit5d3d901d968db7eb3da9c038e6d823f7c75f1e10 (patch)
treefca4e9228f79895adde5b1f0686f864abbe5d045 /index.php
parent758afd5feefbf3a76f5c6abe8bff8c08f39dd7cc (diff)
downloadfileup-5d3d901d968db7eb3da9c038e6d823f7c75f1e10.tar.gz
some cosmetic stuff
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/index.php b/index.php
index 2d1ddfb..38eb660 100644
--- a/index.php
+++ b/index.php
@@ -27,17 +27,23 @@
</div>
<div class="vcenter">
- <form action="/register.php" method="post">
+ <form name="hero_form" action="/register.php" method="post" onsubmit="return validate_hero_form()">
<h2>Get started</h2>
<div class="content">
<p>Username</p>
<input type="text" id="username" name="username">
+ <p id="username-length-error" class="hero_form_error" hidden>Please specify a username</p>
+
<p>Email address</p>
<input type="text" id="email" name="email">
+ <p id="email-error" class="hero_form_error" hidden>Invalid email address</p>
+
<p>Password</p>
<input type="password" id="password" name="password">
+
<p>Repeat Password</p>
<input type="password" id="password2" name="password2">
+ <p id="password-error" class="hero_form_error" hidden>Passwords didn't match</p>
<input type="submit" value="Sign up">
<p style="font-size: 1.1em;">Already have an account? <a href="login.html">Sign in</a>
</div>
@@ -52,6 +58,7 @@
</div>
<script src="js/arrows.js"></script>
+ <script src="js/validate_hero.js"></script>
</body>
<html>