I'm having a problem with file that I created ( reg.js ) for client side validation. In fact, I want to echo out the errors if new user try to submit his credentials without filling all the input fields needed(Firstname, Lastname, email and password)
I'm getting this : enter image description here
I'm pretty new in PHP and this is my first project for a simple C.R.U.D. web site and I'm stuck with this, I tried to google it, but I couldnt find similar solution so I can't really figuire it out how to fix it...