How can I make PHP print an error inline instead of changing the entire page?
I\'d like it to target #errors and fill that instead of changing everythi
#errors
Put the error in a variable where you do your logic and print its contents in #errors. For example:
if (username_is_incorrect()) $error = 'Incorrect username or password.';
And in the HTML
=$error?>