connect_error) { die("Connection failed: " . $conn->connect_error); } if ((isset($_POST['submit']))) { echo "HI"; $destination = $_POST['destination']; $sql = "INSERT INTO destination (destination) VALUES('$destination')"; if ($conn->query($sql) === TRUE) { header('Location: retrive.php'); } else { echo "Error: " . $sql . "
" . $conn->error; } } ?>