I have a registration form that I've got a check to make sure the 'UserName' field is not left empty. The strange thing is on my local machine the "UserName' variable doesn't get passed through the form but if i test the registration (using exactly the same code) on my website the variable is passed through the form.
Has anyone come across this before and better yet how to overcome the problem as i don't want to make a change to the code and have to upload the file to make sure it works?
Thanks.PHP Code://This is part of the form
<form method=\"post\" action=\"index.php?substr=2&act=register\">
<u>Username</u>: <input type=\"text\" name=\"uname\">
</form>
PHP Code://This checks for the empty field
if (empty($uname)) {
echo "<html><head></head><body bgcolor=\"dcdcdc\"><br><br>User Name not entered<br><a href=\"javascript:history.back(1)\">Back</a><br></body></html>";
exit;
}


Reply With Quote
