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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:57:26+00:00 2026-05-30T23:57:26+00:00

I have either an URL like this: http://url.com/test.html?var1?var2 or like this: http://url.com/test.html?var2 how can

  • 0

I have either an URL like this: http://url.com/test.html?var1?var2 or like this: http://url.com/test.html?var2

how can I, using php always extract var2? meaning $variable = var2.

Please note that somehow the server I’m working on doesn’t support $_GET. It just doesn’t work.

thank you for your kind help 🙂

EDIT: after using print_r($_GET) on this url: http://xxxxxx.com/partners/?page_id=1012?selectuser=1 I get: Array ( [page_id] => 1012?selectuser=1 )

but when i do an <?php echo $_GET['selectuser']; ?> nothing gets echoed…

EDIT 2: doing an <?php var_dump($_GET['selectuser']); ?> on http://xxxxxx.com/partners/?page_id=1012?selectuser=1 I get NULL

  • 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-30T23:57:28+00:00Added an answer on May 30, 2026 at 11:57 pm

    Incorrect:

    http://url.com/test.html?var1?var2
    

    Correct:

    http://url.com/test.html?var1=value1&var2=value2
    

    Get your urls in order first, then try $_GET.

    — Edit —

    Not sure what you mean by “Please note that somehow the server I’m working on doesn’t support $_GET. It just doesn’t work.” The following should work:

    var_dump($_GET); // outputs array with var1 and var2
    
    var_dump($_GET['var1']); // outputs value1
    
    var_dump($_GET['var2']); // outputs value2
    
    var_dump(end($_GET)); // outputs value2 (or whatever last element in array is)
    

    And if $_GET doesn’t work, try $_REQUEST.

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

Sidebar

Related Questions

I have a URL like this http://www.freshupnow.com/movie.php?moviename=A+Flat I want to rewrite this URL using
I am using CakePHP 1.26 and CDN JQuery in this URL: http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js In a
I am trying to get a url structure like this. http://example.com/blog/1/title-name-goes-here My main urls
I have a django template that looks like this: <head> <script src=http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js type=text/javascript></script> <script
I am using the following sliding div script: http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html Currently, the slidetoggle function is
I am using a counter plugin for jquery (http://wplayground.comuv.com/counter/) and have it implemented successfully
I have the following script in my javascript... $.ajax({ type: 'POST', url: 'http://www.example.com/ajax', data:
My idea is to implement something like this: https://i.stack.imgur.com/8BmW5.png screenshot is from here: http://www.thedrum.co.uk/opinion/2012/03/08/five-ways-new-facebook-timeline-will-impact-brands
The documentation implies that you can either have 3D rendering or framebuffer mode, and
I have been spoiled by either using sql server to store data, or using

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.