passing values from one form to another
Diez B. Roggisch
deets at nospam.web.de
Sat Nov 12 11:47:52 EST 2005
eight02645999 at yahoo.com wrote:
> hi
>
> i have 3 python cgi scripts created, one is a login page(login.py),
> another is the main page(main.py) with a lot of user inputs and the
> last one is a python cgi script results.py to process main.py
>
> In main.py, 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 results.py script? ie ,
> pass the value of the "user" to the python script..so that user must
> always login to get to results.py....
Use a session. Or pass the values as hidden form-fields, which gets
pretty tedious.
Diez
More information about the Python-list
mailing list