I am having some issues with get and post method and I can't figure out what am I doing wrong.
My form is:
<form action="welcome.php" method="get">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
and welcome.php is:
Welcome <?php echo $_GET["fname"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old!
But when I type in name and age I just get:
Welcome !
You are years old.
No matter what I type in I get this. What is interesting, information about name and age is added in address bar but there is nothing edited in welcome.php.
Any help?? ASAP.
My form is:
<form action="welcome.php" method="get">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
and welcome.php is:
Welcome <?php echo $_GET["fname"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old!
But when I type in name and age I just get:
Welcome !
You are years old.
No matter what I type in I get this. What is interesting, information about name and age is added in address bar but there is nothing edited in welcome.php.
Any help?? ASAP.