hi, got a quick question !!!!
I wanted to make a home made POST function script, just as a test !
I have two post variables one for a username txtbox and one for a password txtbox. The problem lies between the if statement at the bottom of the message.
<?php
$post_login_user = $POST['user_name'];
$post_login_pass = $POST['user_pass'];
$user_check == username;
$pass_check == pass;
print ("$post_login_user, $post_login_pass <br><br>");
if (($pass_check == $post_login_user) and
($user_check == $post_login_pass))
Print ("Not logged in, :(:(:(:( i think");
else
print ("hello u logged in ok 😃😃:😃D i think");
?>
What i wanted to do was check both variables together for example .. username = $variable AND password = $variable
the problem is either variables can be passed meaning the user only has to type in a username OR Password not both.
Could someone put me in the right direction to what the if statement should consist off. Thank you...