Skip to content

Commit

Permalink
Merge pull request #357 from snidelytoo/hiddenfieldfix
Browse files Browse the repository at this point in the history
correct SQLFORM hidden field example
  • Loading branch information
mdipierro authored Aug 4, 2017
2 parents f288f41 + cedafa3 commit 8706e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/29-web2py-english/07.markmin
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ form.vars. The reason is security. Hidden fields can be tampered with.
So you have to explicitly move hidden fields from the request to the form:

This comment has been minimized.

Copy link
@Ford2010

Ford2010 Jul 1, 2018

This comment has been minimized.

Copy link
@Ford2010

Ford2010 Jul 1, 2018

MY hidden fikes


``
form.vars.a = request.vars.a
form = SQLFORM(..., hidden=dict(a='b'))
form.vars.a = request.vars.a
``:code

#### The ``process`` method
Expand Down

0 comments on commit 8706e36

Please sign in to comment.