tags:

views:

39

answers:

1

I'm writing a YouTube Reply/Comment type wall on my website. This allows users to either post a new comment to the wall, or reply to any existing comment on the wall.

Is it recommended to create a separate form for each reply comment box? Or is it better to just create 1 form on the page that contains all of the input/submit elements, and then just use code to figure out which part of the form the user is submitting?

This question really isn't about this particular application, but just general coding best practices. Thanks!

ps - I will be using jQuery/Ajax

A: 

The best thing to do is to use separate forms. Unless you're using ASP.net, in which case you're already inside one giant form.

Breton
thanks. I'll be using this
justinl