passing values from one form to another

Mike Meyer mwm at mired.org
Sat Nov 12 12:31:55 EST 2005


eight02645999 at yahoo.com writes:
> 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....

This isn't really a Python question. The canonical solution is to set
a cookie to get the browser to pass the required information to the
next form.

     <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list