This is a really basic question. I validate evrything from my form in javascript so no validation is going through php. The problem is, when the user submits the form ajax has already checked is the username has already been taken or and gives them a message if it is. Now, this doesnt stop them from using the username anyway because when they submit eveything is posting no matter what. So here's the question if I do an if/else statement after if (isset($_POST['submit'])) what prevents php from posting anyway? Example:
if post check database
if username already taken
error
else
?????
Whether this hits an error or not it's still going to post all the values in the form correct?