do i have to have every table field in the submitted form?  I'm
testing with only a few fields to see how it should work.

On Tue, Nov 11, 2008 at 9:31 AM, Wes James <[EMAIL PROTECTED]> wrote:
> this is for updating
>
> On Tue, Nov 11, 2008 at 9:27 AM, mdipierro <[EMAIL PROTECTED]> wrote:
>>
>> Is this a create or an update form? this should work for create.
>>
>> Massimo
>>
>> On Nov 11, 10:17 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>> wrote:
>>> in app/views/layout.html i have this form and when i submit it i get
>>> the error:
>>>
>>>  File "gluon/sqlhtml.pyc", line 231, in accepts
>>> SyntaxError: user is tampering with form
>>>
>>> I copied the <form ....> part from the html on a page create with
>>> {{include}} which auto generates the form and labels/fields, etc...
>>>
>>> <form enctype="multipart/form-data" class="t2-update" action=""
>>> method="post">
>>> <table align=center>
>>> <tr>
>>> <td>
>>> <label>{{=db.student.last_name.label}}</label><br>
>>> <input name="last_name" value="{{=form.latest.last_name}}" size=31
>>> maxlength=30/>
>>> {{if form.errors.last_name:}}{{=form.errors.last_name}}{{pass}}
>>> </td>
>>> </tr>
>>>
>>> <tr>
>>> <td>
>>> <label>{{=db.student.first_name.label}}</label><br>
>>> <input name="first_name" value="{{=form.latest.first_name}}" size=31
>>> maxlength=30 />
>>> {{if form.errors.first_name:}}{{=form.errors.last_name}}{{pass}}
>>> </td>
>>> </tr>
>>>
>>> <tr>
>>> <td>
>>> <input type="submit" />
>>> </td>
>>> </tr>
>>> </table>
>>> {{=form.hidden_fields()}}
>>> </form>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to