Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Mengambil File Koneksi Database.
- include 'config/koneksi.php';
- //Ambil Data dari FORM
- $username = $_POST["username"];
- $password = md5($_POST["password"]);
- $email = $_POST["email"];
- $nama = $_POST["nama"];
- //Query INSERT ke DB
- $query = "INSERT INTO user VALUES ('$username', '$password', '$email', '$nama')";
- $hasil = mysql_query($query);
- if($hasil) {
- header("Location: index.php?status=success");
- }else {
- header("Location: index.php?status=failed");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement