When i first open the site in wamp it says:
Notice: Undefined index: name in C:\wamp\www\fshije\fshije.php on line 11
Notice: Undefined index: email in C:\wamp\www\fshije\fshije.php on line 12.
But after i put some values it works and click submit the Notice table will disapear.
I could solve this if i would write inside action"anotherfile.php" and the 2 last lines of PHP at that other file normally with post changed to GET can any one explain me how to avoid the Notice tables at the start without the second option.
I am sory that i aksed this question i am new in php
Thank You
<!DOCTYPE html>
<html>
<body>
<?php
echo'<form method="POST" action="">';
echo 'Name: <input type="text" name="name"><br>';
echo 'E-mail: <input type="text" name="email"><br>';
echo '<input type="submit">';
echo '</form>';
echo $_POST['name']; echo "<br>";
echo $_POST['email'];
?>
</body>
</html>