Hello, how to create coding at controller about form, which i have 3 form
> dropdown and each of them i need to do it.
>
----------------------------------------------------------------------------------------------------------------------------------------------------
*i already have table at models :
db.define_table('locations',
Field('name'))
db.define_table('sections',
Field('title'),
Field('description'))
db.define_table('types',
Field('secid',db.sections),
Field('title'),
Field('description'))
db.types.secid.requires=IS_IN_DB(db,'sections.id','%(titles)s')
--------------------------------------------------------------------------------------------------------------------------------------------------
*And this is my .html
<tr>
<td> Location</td>
<td>
<select name="location">
<option value="NULL">Please Select</option>
<option value="balai">Balai Berita</option>
<option value="sri">Sri Pentas</option>
</select>
</td>
</tr>
<tr>
<td>Section</td>
<td>
<select name="sec" id="select1">
<option value="NULL">Please select</option>
<option value=""></option>
</select>
</td>
<td> Type</td>
<td>
<select name="types" class="typelist" id="select2">
<option value="NULL">Please select</option>
</select>
</td>
</tr>
----------------------------------------------------------------------------------------------------------------------------------------
i really need help, i totally doesn't know which one i should use for the
right coding.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.