Micheal, def's that are passed values are treated as private in the web2py environment. Keep that in mind.
Lets say you wanted to search for a person's records by last name. You have a field in a table -- SQLForm('lastname','string') Steps: 1) Determine what you want returned. Then construct your function in the controller -- def doSearch(): rows = db(db.table.lastname.upper() == request.args[0].upper ()).select(db.table.lastname, db.table.firstname) return dict(rows=rows) where db, table correspond to your db and table names. 2) Define your view how you want the data presented. Your view name must correspond to the controller name. 3) construct your request -- http://address/app/controller/function/harmon app is your application name controller is the name of your controller function in this case would be doSearch harmon is the argument for the lastname to be searched for. Rough idea to get you going. On Jun 12, 9:45 am, Michael <michael.no...@gmail.com> wrote: > how would i go about processing a normal form. Say I have a search > bar, how would I call a function with params, such as: > > def doSearch(query): > > thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---