- Code: Select all
// ex11.htm
<html>
<head>
</head>
<body>
<form action="ex11.php" method="get">
Namn: <input type="text" size="10" name="namn"><br>
<input type="submit" value="skicka"></form>
</body>
</html>
//ex11.php
<html>
<head>
</head>
<body>
<?php
echo "Your name is $namn ";
?>
</body>
</html>
When pressing on the button in the htm site I get the error message:
Notice: Undefined variable: namn in c:\inetpub\wwwroot\ex11.php on line 9
Your name is
So my question is why doesn't it work, what am I doing wrong...
Would be thankful for an answear
/Mazerman



