passing values from one form to another

Diez B. Roggisch deets at
Sat Nov 12 17:47:52 CET 2005

eight02645999 at wrote:
> hi
> i have 3 python cgi scripts created, one is a login page(,
> another is the main page( with a lot of user inputs and the
> last one is a python cgi script to process
> In, i am able to check for the value of the user and password
> field, eg
> if form.has_key("user") and form["button"].value == "Login" and
> form.has_key("password"):
>   # show all fields
> how can i also check for the user field in the script? ie ,
> pass the value of the "user" to the python that user must
> always login to get to

Use a session. Or pass the values as hidden form-fields, which gets 
pretty tedious.


More information about the Python-list mailing list