Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5942883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:18:58+00:00 2026-05-22T16:18:58+00:00

I have two comment forms. One comment form parent and another response form. How

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:18:59+00:00Added an answer on May 22, 2026 at 4:18 pm

    Well, you must have:

    • in table holding comments, the field parent_comment_id
    • in the form (html) of the child response a hidden field containing the id of the parent post (parent_comment_id)
    • at the application level, when you receive a comment post, if there is the parent_comment_id with some value, you store it, otherwise, this is a main comment and not a response to something

    I hope I understood your question correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have two tables: Report Comment And assuming I have a database
I have two models related one-to-many: a Post and a Comment : class Post(models.Model):
In this situation I have two models, Comment and Score. The relationship is defined
Okay i have two models: posts and comments. as you can think comments has
Let's say I have two tables, news and comments. news ( id, subject, body,
Have two folders with approx. 150 java property files. In a shell script, how
Let's say I have the 3 different forms defined in my view: # views.py
I often have comment forms and lots of users post things such as !!!!!!!!!!!
I have a form that consists of: 3 text boxes (first two are required
Using Spring 3 I have two forms: adding Item and invalidating Item I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.