Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <title>Registrasi Dosen</title>
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
- <link rel="stylesheet" type="text/css" href="../css/login_admin.css">
- </head>
- <body>
- <div class="regist">
- <h1><center>Registrasi Dosen</center></h1>
- <form action="" method="POST">
- <div class="form-group">
- <input type="text" name="namadosen" class="form-control" placeholder="nama">
- <input type="text" name="userdosen" class="form-control" placeholder="username">
- <input type="email" name="emaildosen" class="form-control" placeholder="email">
- <input type="password" name="passdosen" class="form-control" placeholder="password">
- </div>
- <div>
- <center><input class="btn btn-primary" type="submit" name="daftar" value="Daftar"></center>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="reg">
- <?php
- include_once('../lib/koneksi.php');
- if(isset($_POST['daftar'])){
- $nama = $_POST['namadosen'];
- $user = $_POST['userdosen'];
- $email = $_POST['emaildosen'];
- $pass = $_POST['passdosen'];
- $querytambah = mysqli_query($koneksi, "INSERT INTO dosen_daftar VALUES(NULL, '$nama', '$user','$email', '$pass')");
- echo "Berhasil daftar";
- echo "<a href=\"login_dosen.php\"> Silahkan login!</a>";
- }
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement