how to handle two forms in cgi?



Hi Guys,

I am a new cgi programmer. Now I need to design a web application:
1. first, user login by their username and password in a form (login
form). When users click submit button it connect to database and check
user name and password in a table. If it match in a table, form1.py
should show second form for users in their browser. I have finish this
form. It works well.
2. second form (search form) which contain last name, and first name
which users input data. When user click submit button, it connect
database and search in a table. And the search result need to show in a
list or table in users' browser.

My question is: How let these two form works together? I try to use
two codes for these two forms, e.g. Login.py for login form and
search.py for search form. But when user input data in search form and
click its submit button, it just comes back to login form. Second form
doesn't work.

Any help is appriciated!

Thanks,

LLI

.



Relevant Pages

  • Architecture meditations...
    ... Search form and a DataCapture form. ... Login form is used once, after authentication it is not needed. ... the user will be switching between data capture and search. ... DataCapture form is on, the Running Program List of the device will show ...
    (microsoft.public.dotnet.framework.compactframework)
  • passing values between web forms usign session variables
    ... I always use session variables to pass values ... That is if I get a username, password in a Login ... The search form needs to know who login to display the ...
    (microsoft.public.dotnet.framework)
  • Re: Check User session before display form search results
    ... I have a search form on my home page. ... However, it only redirects to the login page, each time someone tries ... I still want non members to view the home page, ... I think the coorect statement is ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • Check User session before display form search results
    ... I have a search form on my home page. ... However, it only redirects to the login page, each time someone tries ... I still want non members to view the home page, ...
    (microsoft.public.inetserver.iis.activeserverpages)
  • Logging off user
    ... // send the user to login page or ..do something ... >web so user must first log in to get to the second form). ... I need to set some timeout and when the timeout ... expires I want to log ...
    (microsoft.public.dotnet.framework.aspnet.security)