Hey guys. I have a simple login form (username, password, but the fields are not important). So, what I want to do is: the user types in the data, clicks the submit button and if the data is incorrect to be displayed some kind of message like: 'wrong data'. I don't want to have javascript validation. I want only server side validation. So, when javascript is turned on, an ajax request is send to the server to a function to check the data. But, if javascript is turned off for some reason on the user's computer, I want the page to refresh and show the error message or if the data is correct, the user should be redirected to the index page. I hope I made the question clear enough

Cheers ;)