Eduardo Biano wrote:
> def foo(request):
> ans01 = request.get_form_var("ans01")
> if ans01 == 4:
> ans_1 = 1
> return ans_1
ans01 will be a string ("4"), not an int (4).
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have a problem making conditional testing (if) of a
form variable "ans01"(refer generated error). When the
form variable is tested (if) by a called function
(foo) the value of "ans01" is not properly
represented.
def foo(request):
ans01 = request.get_form_var("ans01")
if ans01 =