Page 1 of 1

dynamic multiple submit button

Posted: Fri Mar 18, 2011 8:11 pm
by fugix
Hey guys,
I have a question on how to properly insert data into mysql when a submit button is clicked in a div. Now what I have done is echoed out a table that contains text and an input and submit button for each time a person submits a comment. I have that working fine, however I also want the capability for people to comment on the comment. Like a comment within a comment. I can get it to where when I type in text and submit, it displays the data, but its displays the text that I have written on every comment that is displayed, not the comment that I clicked the submit button on. I believe that this has something to do with the fact that each div contains the same submit button but I cant figure out how to remedy it. Any suggestions? Thanks