Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Jilano331113yCongratulations! What's next?
PS: considering today's society, you might want to add a "prefer not to say" or "other" option for the gender. :)
You might add:
Female to Male
Male to Female
Wack67593yHow 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.
codumke3503yI would add the email field under the last name, for me it looks nicer not to type first an password and than the email.
Picard1783yWith 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.
Rule #1: all input is evil
Rule #2: don’t trust the client
Brugle1903yYou 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.
ldwall11563yNo. Make it ask what genitals you have 😉
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.
Keep it simple stupid