Embedded login page doesn't work
I have a login form that takes a username, password and the currenttime. When the submit button is hit, the page validates that the password matches the username and password from another table called users (which just holds a list of valid usernames and their corresponding password). On success, the entry is added to the login form (showing that someone logged in at this time) and they are redirected to a view of another table (a list of documents they can view). I used openurl("#View:Documents_View) within the submit button of the login form to take the user there.
It works within zoho. When the login works, I am taken to Documents_View. However, when I tried to embed the login form in a webpage (I even tried the permalink), the login works. It takes the username and saves when the login tried to take place, but the user is not taken to Documents_View.
What do I have to do to get this to work? I only want users to be able to login (a form) and then show them a list of documents (a view).