aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Vitkov <alexvitkov98@gmail.com>2021-01-29 13:48:48 +0200
committerAlex Vitkov <alexvitkov98@gmail.com>2021-01-29 13:48:48 +0200
commitfdea65e03218d175bcc5d5f2bbb426688a6cf42e (patch)
treeaaa0e4fc1710dd1f3658bf94326d25b100bfc37f
parentdcf61354050bfe81d6983f1aec34d7d3d6733a0d (diff)
downloadfileup-fdea65e03218d175bcc5d5f2bbb426688a6cf42e.tar.gz
hero_form => login_form or register_form
as they are now in the same file and conflicted
-rw-r--r--index.php4
-rw-r--r--main.js10
2 files changed, 7 insertions, 7 deletions
diff --git a/index.php b/index.php
index 3e92167..90b3f56 100644
--- a/index.php
+++ b/index.php
@@ -25,7 +25,7 @@
</div>
<div class="vcenter" id="signupform">
- <form name="hero_form" action="/php/register.php" method="post" onsubmit="return validate_hero_form()">
+ <form name="register_form" action="/php/register.php" method="post" onsubmit="return validate_hero_form()">
<h2>Get started</h2>
<div class="content">
<p>Username</p>
@@ -50,7 +50,7 @@
</div>
<div class="vcenter" id="loginform">
- <form name="hero_form" action="/php/login.php" method="post" onsubmit="return validate_hero_login_form()">
+ <form name="login_form" action="/php/login.php" method="post" onsubmit="return validate_hero_login_form()">
<h2>Login</h2>
<div class="content">
<p>Username</p>
diff --git a/main.js b/main.js
index a775eb7..f3b6f9a 100644
--- a/main.js
+++ b/main.js
@@ -49,7 +49,7 @@ function clear_hero_errors()
}
function validate_hero_login_form()
{
- var username=document.forms["hero_form"]["username"].value;
+ var username=document.forms["login_form"]["username"].value;
var flag=true;
clear_hero_errors();
@@ -63,10 +63,10 @@ function validate_hero_login_form()
}
function validate_hero_form()
{
- var username=document.forms["hero_form"]["username"].value;
- var email=document.forms["hero_form"]["email"].value;
- var password=document.forms["hero_form"]["password"].value;
- var password2=document.forms["hero_form"]["password2"].value;
+ var username=document.forms["register_form"]["username"].value;
+ var email=document.forms["register_form"]["email"].value;
+ var password=document.forms["register_form"]["password"].value;
+ var password2=document.forms["register_form"]["password2"].value;
var flag=true;
clear_hero_errors();