I tried utilsing $_POST, $_GET and $_REQUEST but none of them work. What should I use to save answers from the inputs? : <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> <!DOCTYPE html> <html> <head> <title>Sign Up</title> </head> <body> <form method="POST"> <input type="text" name="first" id='first'> <input type="text" name='last' id='last'> <button type='submit' name='submit'>Click</button> </form> //WHERE THE INFORMATION IS ASKED <?php //WHERE I ATTEMPT TO SAVE THE INFORMATION BUT I FAIL include_once 'dbh.inc.php'; $first = $_POST['first']; $last = $_POST['last']; /*Notice: Undefined index: first in C:\xampp\htdocs\index.php on line 14 Notice: Undefined index: last in C:\xampp\htdocs\index.php on line 15*/ $sql = "INSERT INTO keep1(Firstname, Lastname) VALUES('$first', '$last');"; mysqli_query($conn, $sql); ?> </body> </html> <!-- end snippet -->
------------------------------------------------------------------------

