I have a very simple PHP script which doesn't work correctly for no reason at all, except that I am cursed:scared:!!
This is my code and then I will give you the retarded error message I am getting!!
<html> <form action="get.php" method="GET"> <input type="text" name="myname"><br> <input type="submit" value="click here"> </form> </html> <?php $name = $_GET["myname"]; echo "Hello, $name"; ?>
this should echo out Hello, and then whatever name you enter but instead it does this when I try and run it in wampserver:
Notice: Undefined index: myname in C:\wamp\www\new 3.php on line 10
WHAT IN THE WORLD IS THAT FROM????
myname is defined in the second input line of the form action or am I blind????:icon_confused:
I have tried everything to get rid of this ridiculous error message but nothing helps!!:'(
Please if you could tell me what the heck is going on here I would be eternally greatful!!:icon_redface: