Skip to content
Advertisement

errors messages with html and php

i have this code bellow:

JavaScript

it doesn’t show any error when the email is not correct or the password is less than 6, and inserts data normally, I need to show for example two error messages if both password and email are not correct, how can I do it?

Advertisement

Answer

Amend your code so that

  1. it will NOT execute the db query if there is/are error(s)
  2. Display the errors if they exist.
JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement