51
Comments
  • 8
    @Jilano
    the gender option should be deleted

    [S]GENDER
  • 27
    You might add:

    Agender

    Androgyne

    Androgynous

    Bigender

    Cis

    Cisgender

    Cis Female

    Cis Male

    Cis Man

    Cis Woman

    Cisgender Female

    Cisgender Male

    Cisgender Man

    Cisgender Woman

    Female to Male

    FTM

    Gender Fluid

    Gender Nonconforming

    Gender Questioning

    Gender Variant

    Genderqueer

    Intersex

    Male to Female

    MTF

    Neither

    Neutrois

    Non-binary

    Other

    Pangender

    Trans

    Trans*

    Trans Female

    Trans* Female

    Trans Male

    Trans* Male

    Trans Man

    Trans* Man

    Trans Person

    Trans* Person

    Trans Woman

    Trans* Woman

    Transfeminine

    Transgender

    Transgender Female

    Transgender Male

    Transgender Man

    Transgender Person

    Transgender Woman

    Transmasculine

    Transsexual

    Transsexual Female

    Transsexual Male

    Transsexual Man

    Transsexual Person

    Transsexual Woman

    Two-Spirit

    Like Facebook
  • 8
    How do you store passwords and compare them when logging in? Here would be an example how to use bcrypt: https://stackoverflow.com/questions... you should never store passwords in plaintext.

    Talking about storing data. You shouldn't use "mysqli_" functions (and definetly not "mysql_"!) but instead use prepared statements (PDO). Here is a, IMO pretty good, tutorial for it: https://phpdelusions.net/pdo

    Oh and as a "bedtime story", I'd reccomend to read http://www.phptherightway.com/

    Also feel free to ask questions.
  • 1
    I would add the email field under the last name, for me it looks nicer not to type first an password and than the email.
  • 1
    With the first check, you just iterate over every post field and check for emptiness. If there are none, the validation will not fail. Better to declare at least a list of expected keys and validate for them.

    Always remember:
    Rule #1: all input is evil
    Rule #2: don’t trust the client
  • 5
    @SteffTek Don't forget Apache Helicopter from the gender list... 😂
  • 1
    That looks way more complicated than coding this simple php form. @SteffTek
  • 0
    You could declare $error_message first and then use .= to add errors to it. The user would see all the errors rather than just one. If you wrap your errors in p tags it'll look nice too.
  • 1
    @SteffTek wtf

    Should add a text input field instead, you don't want to get sued for not posting the correct or up to date list 😂

    😓
  • 1
    @tomiolah1998 sorry for forgetting 😫😫

    @Phlisg I searched for "Facebook gender list" 😂😂
  • 1
    No. Make it ask what genitals you have 😉
  • 2
    @SteffTek
    😐🔫

    xx/xy chromosome
    Get the fuck out of here I have complicated shit to focus on.
    I don't care what you do—just don't fucking bother me with this shit.

    People are changing races now and even making shit up.
  • 1
    @Lahsen2016
    Dude it's great you have the time to figure this shit out—i don't and I don't give a fuck. I'm a guy who likes women. What you do with your life is none of my business.
    How I look at it if you have a dick at birth you're a guy if you have a vagina at birth you're a girl.

    If you're offended by my opinion you have to rethink what you value in life. I'm a guy who you probably never gonna meet. With 97% certainty I'm in a different country and have ZERO influence over your life. Buy a bigger set off balls grow thick skin and get on with your life man.

    That's it for me man social construct or not.
    K.i.s.s
    Keep it simple stupid
  • 1
    @SteffTek
    You forgot:

    Attack Helicopter

    Cheddar Cheese

    Mechanical Pencil

    German Tiger Tank
Add Comment