Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
I need to make a comment that in the left column of the page is a form where users enter their name and comments and in the right column the posted comments would be listed.
I guess I was assuming that the whole page was not submitted (@myspace). But feyd is correct, the simplest way would just be to submit the whole page and update the list based on the contents of the form.
No way do you need AJAX and I strongly advise against it. This seems to me to be a client side question and so I suggest somebody moves it there - unless I'm missing something; you are asking about how to achieve that layout of elements, right?
ole wrote:No way do you need AJAX and I strongly advise against it.
It's Ajax if you want to save the comment in a database and also do not want to refresh the page between submitting the form and redisplaying the list.