class foo:
   def POST(self):
       // do something
*       return web.found("/new_url")
*

what is wrong with this?

On 3/9/09, Anand Chitipothu <[email protected]> wrote:
>
>
> > I am not sure, if this is pretainig to webpy, but since I am using it
> > for my project, this is my first choice. In my project, I have created
> > a form, for the user to fill in the details. Now, once the form is
> > filled, when the user submits the form, I want to redirect him to a
> > new url. I mean, I would like the url in the address bar also changed.
>
> class foo:
>    def POST(self):
>        // do something
>        raise web.seeother("/new_url")
>
> >
>


-- 
BidEgg - Worlds best low price Auction site
http://bidegg.com

BidEgg - Worlds best low price Auction site

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