Send multiple/dynamic url parameters after login validation and registration?
On the login page I'm validating not only username and passwort but also if the account has been activated. From what I see I can only pass one link to a failed URL like: login.php?failedLogin=1 with one messaged based on the "existence" of failedLogin=1
How do I extend this to more specific error messages by sending dynamic URL paramater based on validation results like this:
Validation Username fails
Error Message: "Username does not exist"
Validation Password fails
Error Message: "Password is wrong"
Validation Active User fails
Error Message: "Account has not been activated yet"
Also on the registration page. How can I send the information that the username already exists when only this is the case?