deepthi_vc Posted January 12, 2011 Share Posted January 12, 2011 if else is not working. when login is clicked always it displays else part. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/224171-if-else-not-working/ Share on other sites More sharing options...
dolrichfortich Posted January 12, 2011 Share Posted January 12, 2011 That should be. $u=isset($_POST['u1']) ? $_POST['u1'] : ''; $p=isset($_POST['p1']) ? $_POST['p1'] : ''; isset($_POST['u1']) will return true or false and not the post variable. Link to comment https://forums.phpfreaks.com/topic/224171-if-else-not-working/#findComment-1158325 Share on other sites More sharing options...
deepthi_vc Posted January 12, 2011 Author Share Posted January 12, 2011 thanx it worked Link to comment https://forums.phpfreaks.com/topic/224171-if-else-not-working/#findComment-1158345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.