I am trying to input my name and email into a form and have it shown on another localhost page.
For some reason when I put my name and email into the first form it does not transfer into the the greeting.
It shows as: Hello Your mail is
When it should come out as Hello “my name” Your mail is “my email”
can anyone tell me why the things I am inputting are not showing up?
I am using this simple code
Title: index.php
<html>
<body>
<form action="site2.php" method="post">
Name: <input type="text" name="name">
Email: <input type="text" name="email">
<input type="submit">
</form>
</body>
</html>
and
Title: Site2.php
<html>
<body>
Hello <?php echo $_POST["name"]; ?>!<br>
Your mail is <?php echo $_POST["mail"]; ?>.
</body>
</html>