Hi, The code below is from Page 50 of the pdf book. Need an example for selecting a saved ip address in a table which could verify if a user has or has not submitted a posting within a specified time period. In the example below, there are specified form fields. Could you give me an example of how a selection can be made from a table and redirect the user if the conditions aren't met.
1 def first(): 2 form=FORM(INPUT(_name='visitor_name',requires=IS_NOT_EMPTY()), 3 INPUT(_type='submit')) 4 if form.accepts(request.vars,session): 5 session.visitor_name=form.vars.visitor_name 6 redirect(URL(r=request,f='second')) 7 return dict(form=form) Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

