Home › Forums › Back End › Need help with login form › Reply To: Need help with login form
June 5, 2015 at 4:24 am
#203251
Anonymous
Inactive
I understand, that’s fine. I don’t completely understand why username’s need to be at least 6 characters (@traq, for example, would need to come up with something different) but those decisions are entirely down to you.
The reason your code isn’t working is because you think that
':username'
Is a variable and it isn’t. It’s a string.
strlen(':username')
Will always be 9. Therefore
if(strlen(':username') < 6)
Will always be false.
$username
Is a variable. It starts with a dollar sign and isn’t surrounded by quotation marks.