[eluser]neomech[/eluser]
I'm working on my user registration system (using Ion Auth). Everything is going pretty smoothly so far but I've run into a slightly annoying problem.
I have a user profile page that shows the information about the user. At the bottom of the page is a single line form that only contains one input, a submit button that takes the person to a "change password" page. I wanted to use a form submit button instead of a link for stylistic reasons, and didn't want to use the <button> class with onclick in case javascript was disabled.
However, when I get to the change password page, it has the form validation errors showing up at the top as if the form had already been submitted with empty fields. So the form shows up but it has "Old password field required", "New password field required", etc. even though the page has just loaded and has not been submitted yet.
This does not happen if the profile page uses a link to the change password page instead of a submit button. I surmise that because I'm going from one form to another form, the form_validation rules are being invoked for some reason.
I should note that the profile page and change password page are being handled by the same controller (although using different functions).
Does my problem make sense, and is there a solution that would allow me to continue to use a form submit button to get from one page to the next without making all the errors show up?
Thanks!