hey,
i have a Problem and i don't know how to solve it. I want a form with an 
Input "text" field ( let's call it "amount') and an <select> <Option> part 
(let's call it 'area'). And, finally, a "submit" button. All this shall 
work as follow:

You enter a number in "amount", choose an "area" and press "submit". Once 
done, an db table records your "amount" and "area". 

But the Options of the "area" are depending on a db table, giving out like 
for example 5 records, 
[code]
area_db = db(db.area.area_value == 1).select(db.area.ALL)
[/code]
[code]
<select id="0" class="test">    
    {{x=0}}
    {{y=0}}
    {{for row in area_db:}} 
    {{r = area_db[y].area_value
      t = area_db[y].area_name
     y = y+1
     x= x+1}}<li><option value="r">{{=t}}</option></li>{{pass}}
</select>[/code]

How can i Combine it with an form, so i can enter an amount and submit this 
for further use?
Thanks, 
Regards

-- 
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.

Reply via email to