Menu
Hello,
I am fairly new to PHP and I am creating a basic registration from. I was trying to use isset to check all the variables but without any luck. It seemed all I needed to go was use !empty instead of isset.
Any reason why isset would not work?
if ( (!empty($username)) && (!empty($email)) && (!empty($email2)) && (!empty($pass)) && (!empty($pass2)) )
{
// seems to work
// rest of code to validate
}
else
{
echo ‘please fill in all fields’;
}
Cheers.