If you look at form.vars.name1 before passing them via redirect you´ll
see that no replacing has been done, try with
if form.accepts (request.vars, session):
session.flash = "Form sent"
return form.vars.name1
the replacing happens in the redirect because you can´t have an URL with space
When I extract the value of a form field, if I've written for example
"take helmet", I get the value of field `take_helmet, why?
The code is as follows:
form = FORM ('name risk',
INPUT (_name = 'name1', required = [IS_NOT_EMPTY (),
IS_UPPER ()]),
'preventive
When I write two separate words in a form field, and extract the value
of this field, every space appears the symbol '_', it causes me not
match the field's value with the value of the database.
How I can fix this?
Thanks.
3 matches
Mail list logo