Am Developing A Social Networking Website.. When user posted a message return user have to reply to that message. but we have somany reply boxes calling with the above id. if the dynamic id works my problem is over...
Use jquery more simple and clear. You should separate the reply form in another php file. When the user click the reply button, call ajax function to the file where the reply HTML form located. Here is my example:
With my example, you need only one form for reply. With your version, the server is generating the reply form followed by every reply links, and the server will also be generated the comment forms while the new comment have been created. It makes the file size larger and too much unnecessary HTML will be output. Hope that help.