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

  • SEARCH
  • Home
  • 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 498041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:50:22+00:00 2026-05-13T05:50:22+00:00

I currently have a site with multiple articles being user-generated as content. On each

  • 0

I currently have a site with multiple articles being user-generated as content. On each new post, there is a hidden $getcurrentpageurl variable. When a user is reading a post (x), a form button saying “respond to this post” sends the user to a submit form, in which a hidden field catches the posted $getcurrentpageurl, and inserts it automatically into the new article (y).

By doing so, the new article(y) can then display something like:
“This post is in response to http://www.mysite.com/articles/thearticle(x0”

My question is, how would I go about transforming that url into the article x’s title and presenting it as a link to said url?

If it helps, all posts are saved to an sql database; there is a title field, a text field etc, so I could theorically extract a title from the title field, but I can’t figure out how to organize it all to be automated. Let me know if this needs clarification!

Thanks in advance!


More details:

The database $getcurrentpageurl variable is what it says, it reads the current’s article’s url. When the user presses the “Respond to this post” button, it is sent as POST information onto the submit-article form. In that form, the user can write a Title, choose a category for his article, and write a post into a regular textbox. There is a hidden field for which the value is the POST information, thus the initial article’s url.

When the article is saved, it is then presented as follows :

TITLE

Text

This article is a response to :

    <a href="*url-of-the-repsonded-to-article*">*url-of-the-responded-to-article* </a>

I apologize if I am not being clear, I am quite confused with the process myself!

  • 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-13T05:50:22+00:00Added an answer on May 13, 2026 at 5:50 am

    I don’t understand really how you set it up.

    It sounds like you could really benefit from having a simple article table, comment table, and user table kind of set up, where the comment table references the article table’s id number (not the url or whatever).

    That way you can literally just get the title by doing a query as simple as:

    SELECT `title` FROM `articles` WHERE `article_id` = (x);
    

    to find the title.

    Then you just have a page like “fetcharticle.php?id=x” and it will be as simple as that.

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

Sidebar

Related Questions

I currently have an ASP.net 2.0 site with multiple ASP.Net 1.1 sites running as
I'm currently managing multiple models from a single SITE MANAGER page. I have the
I'm currently creating a small todo site, and I have multiple questions related to
I currently have a site where different users can login, and depending on their
I currently have a site which uses a MySQL 4.x schema, the site uses
Currently I have a site that is set up using a masterpage and a
I currently have a download site for my school that is based in .net.
I currently have a community site that I run that is made up of
I currently have a web site where users can select a custom theme. After
I currently have a django site, and it's kind of slow, so I want

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.