On clicking the submit query button, it should display the information the user has entered but it is not happening here. Where is the mistake? Here is the html code:
<html>
<body>
<form method="post" action="temp2.php">
Name: <input type="text" name="name" ><br>
E-mail: <input type="text" name="e-mail" ><br>
<input type="submit" >
</form>
</body>
</html>`
And the temp2.php file:
<html>
<body>
Name: <?php echo $_POST["name"]; ?><br>
E-mail: <?php echo $_POST["e-mail"]; ?><br>
</body>
</html>
This is the image of the output when Submit button is clicked.
emailinstead ofe-mail. Else put a<?php print_r($_POST); ?>to see all sent post-data.