thedevdojo / php-login-script

This is a simple PHP login script using PHP, PDO, and MySQL
96 stars 71 forks source link

new_register.php #1

Open BasketRex opened 8 years ago

BasketRex commented 8 years ago

I have included an email JavaScript validation to the registration, Since the login uses email and the whole tutorial it makes sense to have an email validator so that only email address can be registered.

ghost commented 6 years ago

i know this is old but its not smart to have the validation via javascript. Some users might block javascript. It's better to use server side php

BasketRex commented 6 years ago

I see, but it's not user-friendly to have validation on the backend only, It's annoying if you forgot to fill in a form field and submit and you have to renter all again. A combination of both is a good option.