I have a index.html file that have the following:
<!DOCTYPE html>
<html>
<form action="email.php" method="get">
Name: <input type="text" name="name"><br>
E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>
</html>
And a email.php file with the following:
<!DOCTYPE HTML>
<html>
<body>
Welcome <?php echo $_GET["name"]; ?><br>
Your email address is: <?php echo $_GET["email"]; ?>
</body>
</html>
However I'm getting this:
Welcome
Your email address is:
whenever I run it using Brackets and typing into the input. Both of the files are in the same folder. How come what I typed are not showing? What am I doing wrong? Currently just started learning PHP. Thanks.