I have 3 different login forms on my website and each of them use different software. Example: phpfox, WordPress, etc.
They are all connected to 1 central database so the same user can login to all 3 forms. All 3 pieces of software are, however, using different tables inside that database.
The problem is that they have to sign into each form separately and it would be nice if they could just login to 1 and then be logged into all 3 pieces of software without having to type in their information again.
Can I just add 2 “hidden” forms to each form so that they will all submit when a user logs in to any one of the forms? What would be the easiest way to accomplish this task?
-Thanks!
It can be done, but hidden forms are probably not the answer, since, outside of AJAX, you cannot submit more than one form at a time and you will definitely require some server-side data massaging anyways, so you might as well take care of all data preparation there.
Just collect the regular inputs on the client side and look into what is required to log into each of the systems you want on the server side. There might even be an API for some.
Check out the answer to this question on authenticating to WordPress:
WordPress Authenticate Filter