The book has anything you are asking for and much more. For an introduction to forms and controllers I think you could check the examples at Overview:
http://www.web2py.com/books/default/chapter/29/03#Overview Also, there are appliances available you can use as example: http://www.web2py.com/appliances Once you have learned using the basic API you can check for more examples at: http://www.web2pyslices.com El sábado, 12 de enero de 2013 07:13:11 UTC-3, Mihir Lade escribió: > > Hi Guys, > > I am currently working on an assignment where I need to create a function > which would query the database to search flights available according to the > users input through the HTML form. I have attached a picture of the HTML > form. > > Basically the user, selects the origin, the destination, oneway/return, > departure date, arrival date, etc etc and than clicks submit. > > This should than return all the flights available in a different page, > however I am having difficulty actually writing the function that will > query the database to do this. > > I am not sure how the HTML form would pass the values to the > searchFlights() function and what the function may look like.. > > Can some one please assist me with this? Any help with this would be > REALLY appreciated. > > Thank you in advanced. > --

