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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:18:07+00:00 2026-06-08T12:18:07+00:00

I got those php files called: clients,type and info. Imagine a website like facebook.

  • 0

I got those php files called: clients,type and info.

Imagine a website like facebook.

You have your: http://www.site.web/profile?=232 , and you click an album, now you have http://www.site.web/profile?=232&album=10, so you click a photo you have http://www.site.web/profile.php?=232&album=10&photo=1.

I want to understand you they make this..keeping that “profile.php”

  • 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-06-08T12:18:09+00:00Added an answer on June 8, 2026 at 12:18 pm

    I think what you are looking for is to use hidden inputs to keep your variables being passed from page to page.

    Use something like this in a form:

    <form method='get'>
        <input type='hidden' name='client' value='1'>
        // Your other inputs
    </form>
    

    This way when you get one input, you can keep passing it from page to page using some simple PHP code to pick it up from the URL and display it again as needed.

    Edit: (Further explanation)

    When you are passing data through the URL from one page to another you can use some simple PHP code to see if something exists to pass it further along – like this:

    <?php //page1.php
    
    if(isset($_GET['user']))
    {
        $user=htmlspecialchars($_GET['user']);
    }
    
    if(isset($_GET['photo']))
    {
        $photo=htmlspecialchars($_GET['photo']);
    }
    
    // Check for anything else you want as needed.
    
    ?>
    

    Then, when actually making your links you can do something like:

    <?php
    
        $baseAddress="<a href='thePageIwant.php?thisVar=3";
        if(isset($user))
        {
            $baseAddress.="&user=".$user;
        }
    
        if(isset($photo))
        {
            $baseAddress.="&photo=".$photo;
        }
        // Add any other variables as needed
    
        $baseAddress.="'>
    ?>
    

    In the HTML output section of your page, you can then use this:

    <p>Some text and then a link <?php echo $baseAddress;?>Your Link Text</a></p>
    

    And your link will appear with all the other variables being passed via the URL. In this case, if user was passed to the page with ID 4, and photo was passed to the page with ID 6, the HTML output would be:

    <p>Some text and then a link <a href='thePageIwant.php?thisVar=3&user=4&photo=6'>Your Link Text</a></p>
    

    If only the user was passed in the URL, and there was no photo=6 the output would be like this:

    <p>Some text and then a link <a href='thePageIwant.php?thisVar=3&user=4'>Your Link Text</a></p>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a PHP file called books.php, and I'd like to use SEO URLs
I've got a question about CSS based popup windows, like those generated by jQuery
I just got a strange problem. I am including some files from my index.php,
I have a bunch of files in the web root: - /abc-674.php /def-643.php etc.etc.
i'm doing a form submit. i've got these 2 files. 1) php html form
I have got myself a server, and on it I'd like to host my
I've got some files using raw php (including config files) that's used for the
I use those js files below: jquery-1.4.2.min.js include/jcarousel/lib/jquery.jcarousel.min.js include/mousewheel/jquery.mousewheel.js in my index.php file i
I got this code from this site: http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/using-php-to-backup-mysql-databases.aspx But I'm just a beginner so
I have the folowing issue: I got a PHP file ( standards.php ) with

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.