blank fields error

Any problem with PHP can be disscused here
Post Reply
UNDERCOVER
Posts: 115
Joined: Tue Apr 05, 2005 1:02 pm

blank fields error

Post 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


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post 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
Image
Post Reply