Commit 65fad6bb by Mei Romauli Sagala

edit

parent f4b29b06
...@@ -36,8 +36,9 @@ ...@@ -36,8 +36,9 @@
if($cek_username == 0){//jika nama tidak ditemukan/belum terdaftar if($cek_username == 0){//jika nama tidak ditemukan/belum terdaftar
//lakukan penambahan data //lakukan penambahan data
$id = $countData +1; $id = $countData +1;
mysqli_query($koneksi, "INSERT INTO member VALUES('','$nama', '$address', '$hp', '$uname', '$pass', '$email')");
echo("<script> alert('Pendaftaran berhasil')</script>"); echo("<script> alert('Pendaftaran berhasil')</script>");
echo "<meta http-equiv='refresh' content='1 url=form_daftar.php'>"; header("Location: form_login.php");
}else{ }else{
echo("<script> alert('Username sudah terdaftar , silahkan ganti username anda')</script>"); echo("<script> alert('Username sudah terdaftar , silahkan ganti username anda')</script>");
echo "<meta http-equiv='refresh' content='1 url=form_daftar.php'>"; echo "<meta http-equiv='refresh' content='1 url=form_daftar.php'>";
......
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