Check for empty fields script
Posted: Tue Aug 04, 2009 1:57 pm
ok so i have created a form which checks for empty fields
if (empty($username) || empty($password)) {
include "loginpage.php";
echo "Please fill in all the fields";
} else {
but the problem is that even if i fill in all the fields it still gives my the message.
if (empty($username) || empty($password)) {
include "loginpage.php";
echo "Please fill in all the fields";
} else {
but the problem is that even if i fill in all the fields it still gives my the message.