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 6643405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:02:48+00:00 2026-05-26T00:02:48+00:00

One page in my root directory, displays text collected from the database. This page

  • 0

One page in my root directory, displays text collected from the database.

This page has a uniquely generated ID. A link on this page redirects the user to another page in the same root directory. On this second page I need to collect the specific ID (/URL) from the previous page, and use it as a variable.

How can I do this as smooth as possible?

Can I “send” the ID value from one page to the other?

  • 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-26T00:02:49+00:00Added an answer on May 26, 2026 at 12:02 am

    In the page you’re linking from..

    <href="http://www.yoursiteurl.com/yournewpage.php?passedInId=<?php echo $theIdToCarryOver; ?>">link text</a>
    

    In yournewpage.php, cast your value to an integer to make sure the receiving page always gets an integer

    $id = intval($_GET['passedInId']);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In one page, it should show records that has the following selected month from
I click on a link from one page that does a redirect to another
How can I link to one of my root controllers from one of my
How can I redirect the user from one page to another using jQuery or
I'm trying to load one page into another using the .load() method. This loaded
I am listing files from a directory and for each one there is a
When cached, my starting page only needs to load one element (the root document)
this is my project.clj file: (defproject org.github.pistacchio.deviantchecker 0.9.0 :description A one page application for
IIS 6.0, one root website with Virtual Directories underneath. The root website has its
I have just one root directory with index.php in it along with two folder

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.