Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kurtr127557yAhem... It should be !== other than that i have zero issue with a double check. I've seen code do some weird shit.
-
devios157707yAlso my advice is don't use "and" and "or". They have really weird precedence. && and || are better and behave as expected.
-
kurtr127557y@Rooster it probably has zero effect but it doesn't hurt either. The comparison operator however really matters.
-
You at least ask to repeat the password. I hate it when I only can type it once and probably have a typo in the password...
-
You know, I think there is a way those conditions return different results due to their type
Related Rants
-
Korvax31Italian chef: We have the best spaghetti in the world PHP developer: I doubt that
-
fabiomsnunes22Stupidest client ever: I once had a client that requested me a new website, all went well and get paid. After ...
-
Coffe2Code13~During app demo to our client~ - And when you click here the request will be submitted, the admin will be no...
Yea so I was creating registration form and I did this:
...
if ($pass != $passrepeat or
$passrepeat != $pass) {
# MAGIC
}
...
I think I should quit being a programmer..
undefined
stupid
pass
php