Do you have a
form=FORM()
return dict(form=form)
in your controller
I just tried it and I get this:
<div class="hidden"><input name="_formkey" type="hidden"
value="8541c665-38de-4a84-9056-22b208aa45ad" /><input name="_formname"
type="hidden" value="default" /></div>
{{=wes}}
On Fri, Sep 18, 2009 at 3:35 PM, eddwinston <[email protected]> wrote:
>
> Hi,
>
> But just using {{=form.hidden_fields()}} does not generate a form key
>
> On Sep 18, 10:56 pm, mdipierro <[email protected]> wrote:
>> {{=form.hidden_fields()}}
>>
>> will create the <input type="hidden">....
>>
>> On Sep 18, 2:39 pm, eddwinston <[email protected]> wrote:
>>
>> > Hi,
>>
>> > If I create a form on the view and not from the controller action, how
>> > can the form get a unique form key? Thanks
>>
>> > Winston
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---