echo "<p>Incorrect details, Username or password is incorrect\n" .
'<br /><br /> <button onclick="history.go(-1);">Back </button></p>';
I am using the code above to redirect users if their login details are incorrect. The header won't work as I am outputting html and I need the button, the problem is on the page it goes back to. It displays the past errors if there were any before.
I have two pages one called login which is just a form which submits to this login process.