On Thursday, October 6, 2011 3:46:04 AM UTC-4, miroslavgojic wrote:
>
> For what need web2py use next code in form on end of form definition. 
>
> <div class="hidden"> 
> <input name="_next" type="hidden" value="/moje0/default/people" /> 
> <input name="_formkey" type="hidden" value="335f257a-843c-4c20-8e02- 
> e8146088b3ce" /> 
> <input name="_formname" type="hidden" value="person/None" /> 
> </div>
>

These are hidden fields used by web2py to process submitted forms. _next is 
used by Auth to store the URL originally requested before a redirect to the 
login page -- Auth will redirect back to that URL after successful login. 
_formname stores the name of the form so web2py knows which form to process 
(necessary when there is more than one form on a page). _formkey is a unique 
key associated with a particular instance of a form and is also stored in 
the user session -- upon submission, the keys must match (this is to prevent 
double form submission and to protect against cross site request forgery 
attacks).

See http://web2py.com/book/default/chapter/07#Hidden-fields.

Anthony

Reply via email to