I have a form that contains a few simple fields etc and it is available to the public.
What I want to do is when the user completes the form, I want to be able to re-direct to another secure database and automatically log in to the database.
Thus if they try to go directly to the database then they will fail. Is there a way I can pass the login information into the db login form from my original form?
Subject: Authenticate with another db when form submitted
You could create a profile document during the login in the rlevant db. In that db you could test for the presence of such a doucment.
The problem is , that you must be sure that the document is removed as soon as possible, to avoid an unwanted sequence. You might check for the creation time of the profile, when it is longer ago than a short while ago, you act as if it does not exist.