I have a login script that I am using on another project that works great by using redirect. The problem I have with the doing the same thing on this is I need to post a form on the server so it connects to the right database and loads the software correctly.
Example of good page:
User enters username and password. If both are correct then redirect to the next page. If not, send them to a page saying that the login was incorrect.
Example of issue page:
User enters username and password. It checks to see that both are correct and populates what database they need. Once this is done I create my form with hidden fields and then...bla. I need to simulate the clicking of the submit button so the information gets processed with no user clicking.
Here is the code I need to get auto submitted:
Expand|Select|Wrap|Line Numbers
- <Form Action="@ITEM_PROTOCOL@://@ITEM_SERVER@/" METHOD=POST>
- <INPUT type="Hidden" NAME="USER" VALUE=strUserName>
- <INPUT TYPE="hidden" NAME="Password" Value=rsCheckUser("pass")>
- <INPUT TYPE="Hidden" NAME="Database" Value=rsCheckUser("database")>
- <INPUT TYPE="hidden" NAME="STATION" VALUE="View">
- <INPUT NAME="CONNECTION" TYPE="hidden" VALUE=@ITEM_CONNECTION@ >
- <INPUT NAME="FRAME" TYPE="hidden" VALUE="ALL">
- <INPUT NAME="HITS" TYPE="HIDDEN" VALUE="ON">
Any Ideas?