...condition? Hi there,
Let's say you've got a 'login' form that you want to validate and 'log the user in' to your website. Two fields with the names of: "username and password". You set up the 'login' function in PHP like this:
if (!__MY QUESTION__ || !__MY QUESTION__) {
}
What would you put in the place of '__MY QUESTION__'? Would you use !isset($_POST['username']) || !isset($_POST['password']) in the condition or what? I'm kinda confused.
Thanks very much! XD
Paul
Let's say you've got a 'login' form that you want to validate and 'log the user in' to your website. Two fields with the names of: "username and password". You set up the 'login' function in PHP like this:
if (!__MY QUESTION__ || !__MY QUESTION__) {
}
What would you put in the place of '__MY QUESTION__'? Would you use !isset($_POST['username']) || !isset($_POST['password']) in the condition or what? I'm kinda confused.
Paul