Not sure what the heck I am doing wrong here as I am trying to learn how to process forms and followed this tutorial(http://www.w3schools.com/php/php_forms.asp) to a T and still couldn't get it to work. You'll see some minor differences, but I have been trying to get this working for the last hour and have added different things to try and fix it.
Here is my first file:
<html>
<body>
<form action="data.php" method="post" enctype="multipart/form-data">
Name: <input type="text" name="test"><br>
<input type="submit">
</form>
</body>
</html>
Here is my data.php
<?php
if(isset($_POST['test'])){
$name = $_POST['test']; }
?>
Welcome <?php echo $name; ?><br>
I added a var_dump($Globals)
'HTTP_RAW_POST_DATA' => string 'test=asdf' (length=9)
'_GET' =>
array (size=0)
empty
'_POST' =>
array (size=0)
empty
'_COOKIE' =>
array (size=1)
'Phpstorm-67f10f2' => string '2e6a5757-50fb-4c36-8bd7-0fe98e66892d' (length=36)
'_FILES' =>
array (size=0)
empty
'_ENV' =>
array (size=0)
empty
'_REQUEST' =>
array (size=0)
empty
'_SERVER' =>
array (size=78)
I am baffled.
Thanks in advance.