Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'function_pulsa.php';
- if(isset($_POST["register"]) ) {
- if(registrasi($_POST) > 0 ) {
- echo "<script>
- alert('user baru berhasil ditambahkan!');
- </script>";
- } else {
- echo mysqli_error($conn);
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Registrasi Admin Pulsa</title>
- <style>
- label {
- display: block;
- }
- </style>
- </head>
- <body>
- <h1>Registrasi Admin Pulsa</h1>
- <form action="" method="post" >
- <ul>
- <li>
- <label for="username">Username :</label>
- <input type="text" name="username" id="username">
- </li>
- <li>
- <label for="password">Password :</label>
- <input type="password" name="password" id="password">
- </li>
- <li>
- <label for="password2">Konfirmasi password :</label>
- <input type="password" name="password2" id="password2">
- </li>
- <br>
- <li>
- <button type="submit" name="register"><strong>Register</strong></button>
- </li>
- </ul>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement