Only if condition is getting executed in php?

nandy

New member
i have a php file(login-exec.php) to which login id and password are posted from a login page (loginpage.php). I have included if, elseif statements to check three conditions.
a)if login id and password is missing using && operator.b)if login id alone is missing c)if password alone is missing. But everytime the page is executed, it executes the first condition. first if conition is always becoming true even if both the fields are not empty. Help me to solve this.
 
Back
Top