gender prefs implemented php