This is a section of code from a Signup page, it is not working, not signing up.
I was looking at the code and notice the 2 BOLD areas, the code is different, 1 is just"" and the 2nd has “empty”
could someone tell me if this is correct? and what is correct ? Thank you
session_start();
$username = cleanInput($_POST[‘username’]);
$password = cleanInput($_POST[‘password’]);
$firstname = cleanInput($_POST[‘firstname’]);
$surname = cleanInput($_POST[‘lastname’]);
$email = cleanInput($_POST[‘email’]);
$age = cleanInput($_POST[‘age_list’]);
$children = cleanInput($_POST[‘children’]);
if ( $firstname!=“” and $surname!=“” and $email!=“” and $age!=“empty” and $children!=“empty” and $gender!=“empty” and $sexuality!=“empty” and $build!=“empty” and $height!=“empty” and $area!=“empty” and $town!=“empty” and $employment!=“empty” and $diet!=“empty” and $drink!=“empty” and $smoke!=“empty” and $religion!=“empty” ) {
$newMember = new Member();
$newMember->firstname = $firstname;
$newMember->surname = $surname;
$newMember->username = $username;