0

I'm trying to post user's form data from the html to php file using the POST method but the Php file is not getting the data.

Here's the code of my html file:

<html>
<body>

<form action="killer.php" method="post">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html>

Here is the code of my php file:

<!doctype html>
<body>

Welcome <?php echo $_POST["name"]; ?>
Your email address is: <?php echo $_POST["email"]; ?>

</body>
</html>

The file-names are correct and both files are in the same folder. Kindly help.

0 Answers0