Skip to content

Commit

Permalink
correct SQLFORM hidden field example
Browse files Browse the repository at this point in the history
per  Joe Barnhart Monday, May 8, 2017 at 2:07:01 PM UTC-7,
https://groups.google.com/d/topic/web2py/QR-YROCPrQI/discussion
  • Loading branch information
snidelytoo committed May 11, 2017
1 parent f288f41 commit cedafa3
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:

``
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 cedafa3

Please sign in to comment.