In PHP, when would you use the ISSET function or just the $_POST variable in an if...

a380Lover

New member
...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. :P Thanks very much! XD

Paul
 
Back
Top