Commit 201e696b by Thi Thanh Yen Hoang

Merge branch 'branch1' into 'master'

Branch1



See merge request !2
parents 488bd174 c0e67e50
......@@ -14,13 +14,13 @@ function validate() {
// Validate
if (firstname == "" || lastname == "" || email=="" || cemail=="" || bday=="" ) {
message.innerHTML = "Input Error";
check = false;
check = false;
}
else {
if (email == cemail) {
if (alphabeta.test(firstname) == true && alphabeta.test(lastname) == true && date.test(bday) == true && filter.test(email) == true && filter.test(cemail) == true) {
if (email == cemail) {
if (alphabeta.test(firstname) == true && alphabeta.test(lastname) == true && date.test(bday) == true && filter.test(email) == true && filter.test(cemail) == true) {
alert("Thank for your registering");
check = true;
check = true;
}
else {
message.innerHTML = "Input Error";
......@@ -29,7 +29,7 @@ function validate() {
}
else {
message.innerHTML = "Input Error";
check = false;
check = false;
}
}
return check;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment