Page 1 of 1

blank fields error

Posted: Tue Sep 20, 2005 8:35 am
by UNDERCOVER
i need help with blank fields

when i enter my password and user name on my game and go to login it tells me i left fields blank but yet theres no fields blank is there a code to byepass it or can some one fix it for me if so can u add me

msn: allan19658889@hotmai.com
aim: allan19658888
yahoo: undercover_ucv@yahoo.com.au

Posted: Tue Sep 20, 2005 1:38 pm
by Lixas
I know where could be a problem: if this is your own created page, then maybe you not noticed that "register_global" is off in thesmokylounge server, so, if it's your own script u should use

Code: Select all

 
//php code
<?
if (isset($_POST["username"])) $username=$_POST["username"];
?>
username is from form

Code: Select all


<form name="login" method="POST">
<input type="text" name="username" >
<input type="submit" value="Log Me in">
notice that form method should be POST