Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['insert'])) {
- $hostname="localhost";
- $username="";
- $password="fifY6bowPpCv";
- $databaseName="";
- $uName = $_POST['username'];
- $pass = $_POST['password'];
- $connect = msqli_connect($hostname, $username, $password, $databaseName);
- $query = "INSERT INTO users(username, password) VALUES (uName, pass)";
- mysqli_close($connect);
- }
- ?>
- <!DOCTYPE html>
- <html>
- <body>
- <form action="index.php" method="post">
- <input type="text" name="username"> <br> <br>
- <input type="password" name="password"> <br> <br>
- <input type="submit" name="submit">
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment