Skip to content
Snippets Groups Projects
Commit 7b57a4d6 authored by Akmal Fadlurohman's avatar Akmal Fadlurohman
Browse files

Menambahkan fitur error pada sign up jika data form yang diisikan tidak lengkap

parent e7e7b00d
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<h1>-- Sign up --</h1> <h1>-- Sign up --</h1>
<div> <div>
<p id="error_signup" style="text-align: center;"></p>
<form name="sign_up" method="post" action="sign_up.php" onsubmit="return validate_password();"> <form name="sign_up" method="post" action="sign_up.php" onsubmit="return validate_password();">
Your name* Your name*
<input type="text" name="full_name"><br/> <input type="text" name="full_name"><br/>
......
...@@ -30,5 +30,12 @@ ...@@ -30,5 +30,12 @@
} }
mysql_close($conn); mysql_close($conn);
} }
else {
include("sign_up.html");
echo "<script>
document.getElementById('error_signup').innerHTML = 'Please fill all the required field';
</script>";
header("Location: sign_up.html");
}
} }
?> ?>
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