Okay, I've simplified the urls and added a parameter to the POST
declarations:

import web
render = web.template.render('templates/', cache=False)

urls = (
    '/', 'index',
)

class index():
        def GET(self):
                web.header("Content-Type", "text/html; charset=iso-8859-1")
                print render.ac()               # display autocomplete (ac) 
input box
                return

        def POST(self, url_bit):        # ac is sending the string "/ac/?
q=a&limit=150" where 'a' is the user entry
                i = web.input()                 # collect the string with 
i=web.input() - a
dictionary type object
                web.debug(i)
                q = i["q"]                              # pickup q=? and 
limit=? from the string
                limit = i["limit"]
                return

But, it still gives the same error!



On Apr 7, 7:52 am, "Hermann Kaser" <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 7, 2008 at 4:51 PM, dineshv <[EMAIL PROTECTED]> wrote:
>
> >  Oh!  Okay, so in my case how do I then pickup q=a (or whatever the
> >  browser sends) and limit=150?  Do I still use web.input?
>
> Yeah, just get rid of the (.*) bit, or add an extra parameter to your
> GET and POST declarations for index
>
> --
> Hermann Käserhttp://theragingche.com/http://semicir.cl/user/hermzz
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to