def getdata_form():
   form=FORM('Start Date:', INPUT(_id='startdate', _name='startdate', 
_class='date'), 'End Date:', INPUT(_id='enddate',     _name='enddate', 
_class='date'),    INPUT(_type='submit'), 
_action=URL('grabvoltrindata')).process()
   if form.accepted:
       dosomethingwith(form.vars.startdate,form.vars.enddate)
   return dict(form=form)

On Thursday, 15 May 2014 10:01:35 UTC-5, Tom Russell wrote:
>
> I have a form that is not connected to a db table. Its a simple form:
>
> def getdata_form():
>    form=FORM('Start Date:', INPUT(_id='startdate', _name='date', 
> _class='date'), 'End Date:', INPUT(_id='enddate',     _name='date', 
> _class='date'),    INPUT(_type='submit'), _action=URL('grabvoltrindata'))
>    return dict(form=form)
>
> Then I have a function that runs some code called def grabvoltrindata()
>
> I need to pass in the startdate and enddate, how would I do that?
>
> Thanks,
>
> Tom
>

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