2014-01-20

My problem is in the else of formRegister which is formValidation. I'm using this code to put an alert box if the user inputs are incorrect BUT I'm having problem on how to stop inserting data that are incorrect into the database. I believe I'm making a mistake around this code: And please explain, your answer.

EDIT:
okey so I edited my program but still it has some problems with regards to database putting invalid email address.. and it won't pass through the else code : I put alert just to know it pass on that else argument but it didn't show up.

This the full view of the code I'm using. I just edited the function checkLetter(Checkfirst,Checkmiddle,Checklast), taking in the advice of guypursey.

Show more