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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:05:37+00:00 2026-05-25T23:05:37+00:00

I have tags for each id on page flinstones.php (tags can be in different

  • 0

I have tags for each id on page flinstones.php (tags can be in different orders)

$tag_array example:

id 123 = wilma, fred, bam bam, dinosaur
id 124 = dinosaur, bam bam, fred, wilma

var_dump($tags_array) returns this:

array(4) { 

    [0]=> string(5) "wilma"

    [1]=> string(4) "fred"

    [2]=> string(7) "bam bam"

    [3]=> string(8) "dinosaur"

} 

Now everything is as it should be. I’m using the first tag in a link parameter like so:

<a href="pandorum?tag=$tag1">$tag1</a>

Problem happens when I come back to this same page with a variable in the link.
flinstones.php?tag=fred

Now my var_dump($tags_array) gives me this instead of all the values above.

array(1) {

    [0]=> string(4) "fred" 

} 

This changes my $tag1 to fred instead of wilma for id 123 and fred instead of dinosaur for id 124.

Is there a way to call that original *first tag* for the id?

flinstones.php                                flinstones.php?tag=fred
id 123 = *wilma*, fred, bam bam, dinosaur     id 123 = fred (should be wilma)
id 124 = *dinosaur*, bam bam, fred, wilma     id 124 = fred (should be dinosaur)
  • 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-25T23:05:38+00:00Added an answer on May 25, 2026 at 11:05 pm

    Check if register_globals is enabled. If they are, then you are clobbering the GET variable with your local version (so use a different variable in your code).

    Here is a link: http://www.php.net/manual/en/ini.core.php#ini.register-globals

    (I remember when they flipped the default from on to off — it was a PITA to go back and fix code)

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

Sidebar

Related Questions

How can i populate multiple id tags simultaneously. On my page i have id
I have a page consisting of many anchor tags and when each link is
Suppose I have a tags table with two columns: tagid and contentid . Each
I have 3 div tags. Each having no. of textboxes and button. Each textbox
I have 5 div tags with the same class. Each div tag has a
I have a UL with 9 anchor tags, each with the class 'highlight'. Here
I have multiple data items, each with a value V that has multiple tags
I have a database populated with 1 million objects. Each object has a 'tags'
Consider a HTML page with a bunch of tags each with their own content.
I have multiple dl elements on a page. At the end of each one

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.