Re: [web2py] view with 2 forms

2012-03-06 Thread Bruce Wade
If you want multiple forms you will also have to give each form a unique form name, and have your controller use that form name when processing the form. Otherwise there is no way to tell which form was posted with possibly hundreds of forms. However for what you are trying to do, it would be more

Re: [web2py] view with 2 forms

2012-03-06 Thread Alessandro Aguiar
Carlos, thanks for the reply. What I want is to write a comment to the correct post. In the view I list all the posts, I put an input in to comment this post. Oh what I want is when the user replies to a post in the comment input is corretament associated with your post. thank you Em 6 de março

Re: [web2py] view with 2 forms

2012-03-06 Thread Carlos Costa
You will need to pass the post ID in the url or var or something. And I think you want to show comments related to the post not another posts. comments = db(db.comment.id=request.args(0)).select() Pass this to the view. 2012/3/6 Ale : > Good morning everyone. I am making a simple application, bu