I read somewhere that isset() function is that an empty string tests as TRUE, os isset() is not an effective way to validate text inputs and text boxes from a HTML form. So you can use empty() to check that a user typed something....
Q1. Is it true that isset() function treat an empty string as TRUE?
Q2. Then in which situation I should use isset()? Should I always use !empty() to check if there is something?
For example instead of if(isset($_GET['gender']))...
Using this if(!empty($_GET['gender']))...
Thanks for your help.