Villas - I have read the book. The form.custom only works with SQLFORM
and crud. I cannot use that same method with FORM.
Looks like there are some other properties of the form I can output in
the view... so far I found
{{=form.formname}} - which just give me the word "default"
{{=form[0]}} 1 2 3 4 to output each individual tags.
The starting <form> tag and the hidden fields aren't stored this way
tho.
Anyone know what properties I can call to get the hidden fields?
On Feb 10, 8:12 pm, villas <[email protected]> wrote:
> See the Forms and Validators section of the book. You have total
> flexibility if you want to go to the trouble of building your own
> form. Check out the Custom Forms section of that chapter.
>
> On Feb 10, 12:45 pm, Panupat Chongstitwattana <[email protected]>
> wrote:
>
> > What I meant was breaking the form down to pieces and put them at the
> > appropriate places. Like,
>
> > <tr>
> > <td> 'Name :' comes here </td>
> > <td> INPUT _name comes here</td>
> > </tr>
> > <tr>
> > <td> 'Password :'</td>
> > <td> INPUT _password </td>
>
> > etc.
>
> > On Thu, Feb 10, 2011 at 7:37 PM, Bruno Rocha <[email protected]> wrote:
> > >>>> form = FORM()
> > >>>> form.element().append(LABEL(_for='name',_value='Name'))
> > >>>> form.element().append(INPUT(_type='text',_name='name'))
> > >>>> print form
> > > <form action="" enctype="multipart/form-data" method="post"><label
> > > for="name" value="Name"></label><input name="name" type="text" /></form>
> > > ---
> > > Bruno Rocha
> > >http://about.me/rochacbruno/bio
>
>