I am trying to learn PHP.I can't run this example.But I think codes are true.I am trying it at my localhost.How can i run it?
<html>
<head>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
<title>My Page</title>
</head>
<body>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
Name: <input type="text" name"fname">
<input type="submit">
</form>
<?php
$name=$_REQUEST['fname'];
echo $name;
?>
</body>
</html>
Error: ( ! ) Notice: Undefined index: fname in C:\wamp\www\index.php on line 12