I have this code to check if people have filled out all the information on there profile page, address, city and that, so they can enter the page if they have filled out every thing. But if the missed one they cant get access to it
This is my code:
<?php
$firstname=$current_user->user_firstname;
$lastname=$current_user->user_lastname;
$addr=$current_user->address;
$city=$current_user->city;
$postcode=$current_user->postalcode;
$bday=$current_user->birth_date;
$phone=$current_user->phonenumber;
$steamname=$current_user->steam_name;
$steamid=$current_user->steam_id;
$userip=$current_user->user_ip;
if (empty($firstname) && empty($lastname) && empty($addr) && empty($city) && empty($postcode) && empty($bday) && empty($phone) && empty($steamname) && empty($steamid) && empty($userip)) {
echo "Not all filled";
} else {
echo "All is filled";
}
?>
Aucun commentaire:
Enregistrer un commentaire