Lately, I've experienced many problems using isset(). For instance, when I want to know if an user has filled a required field in a form
<?php
if(!isset($_POST['usernmae']))
echo "Please insert your username.<br>";
?>
<HTML>
<HEAD>
<TITLE>Registration</TITLE>
</HEAD>
<BODY>
<form action="registration.php" method="post">
user name : <input type="text" name="username"><br>
<input type="submit">
</BODY>
</HTML>
When I run this page on my host, if I either fill the username field or don't fill it, I will get the same result. The error message "Please insert your username" will be displayed.
Does anybody know what is the problem? What should I do? How can I fix it?
BTW, if I have grammar or spelling mistakes, please let me know. I want to improve my English.