I ran into a trouble yesterday and I don't know how to fix this problem. I have a form
<form action="#" method="POST" target="_self">
<input type="text" name="name">
<input type="Submit" value="submit">
</form>
and the .php code is simple: < ?php if (isset($_POST['name'])) echo $_POST['name']; ? >
the problem is that after I write something in the "name" field and click "submit" all I get is " Notice: Undefined variable: n in G:\wamp\www......" ...but, if i change to action="somefile.php" I get the result I need... it works...
Do you what the problem may be?