I have two comment forms. One comment form “parent” and another response form.
How can I
- Let the script know what what response belongs to x parent comment
- Also maintain what responses below x comment at the point of INSERTING and SELECTing to display.
I have the INSERT for parent comment ready. But for the response INSERT I know there is a extra field that will save the id of the comment parent so the resposne comment can display below it’s parent comment.
From where can I take the id for that comment form and insert it in the database for responses comments.
Responses comments form
<form align="left" id="bring" action="profile.php?id='. $uid .'" method="post" enctype="multipart/form-data" name="message_from">
<textarea name="comment_field_2" type="text" id="text2" rows="3" style="width:100%; height:30px;"></textarea>
<input type="hidden" id="parent_comment" name="comments" value="23" />
<input id="bringinput" name="submit" type="button" value="submit" align="left" />
</form>
Well, you must have:
I hope I understood your question correctly.