gesf
New member
1st:
If your trying to assign a username and password for that first varibales, you should do (Example):
Because your calling a variable from superglobal array $_POST and at the very first time it has nothing in it, or doesn´t exists!
2nd: You have errors in your syntax!
3rd:
The better way of doing a login script, specially when you could have a lot of registered users, is using MySQL!
If your trying to assign a username and password for that first varibales, you should do (Example):
Code:
// This:
$user1 = '001';
$pass1 = 'pass1';
// Instead of:
$user1 = $_POST['001'];
$pass1 = $_POST['pass1'];
2nd: You have errors in your syntax!
Code:
// Use:
$_POST['variable']
// Instead of:
$_POST['$variable']
// You should use too:
$_POST['variable'] == $variable
// Instead of:
$_POST['variable'] == '$variable'
The better way of doing a login script, specially when you could have a lot of registered users, is using MySQL!