SHARE
TWEET

Untitled

a guest Jan 19th, 2020 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     include "koneksi.php";
  3.  
  4.     $nama=$_POST['nama'];
  5.     $username=$_POST['username'];
  6.     $password=$_POST['password'];
  7.     $email=$_POST['email'];
  8.     $notelp=$_POST['notelp'];
  9.                                    
  10.     $sql ="INSERT INTO tb_login(nama,username,password,email,notelp) VALUES ('$nama','$username', '$password', '$email', '$notelp')";
  11.     $result = mysqli_query($con,$sql);
  12.  
  13.     if($result){
  14.         echo"<SCRIPT LANGUAGE='Javascript'>
  15.            alert('Data Tersimpan');
  16.            </SCRIPT>";
  17.             echo '<script> window.location="media"; </script>';
  18.     }else{
  19.         echo"<SCRIPT LANGUAGE='Javascript'>
  20.            alert('Data Gagal Disimpan Bro!');
  21.            </SCRIPT>";
  22.             echo '<script> window.history.go(-1); </script>';        
  23.     }
  24. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top