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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:28:17+00:00 2026-06-09T16:28:17+00:00

Say I request this URL: http://mydomain.com/script.php?var=2+2 $_GET[‘var’] will now be: 2 2 where it

  • 0

Say I request this URL:

http://mydomain.com/script.php?var=2+2

$_GET[‘var’] will now be: “2 2” where it should be “2+2”

Obviously I could encode the data before sending and then decode it, but I’m wondering if this is the only solution. I could also replace spaces with plus symbols, but I want to allow spaces as well. I simply want whatever characters were passed, without any url decoding or encoding going on. Thank you!

  • 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-09T16:28:19+00:00Added an answer on June 9, 2026 at 4:28 pm

    Of course. You could read out $_SERVER["QUERY_STRING"], break it up yourself, and then forgo the usual URL decoding, or only convert %xx placeholders back.

    preg_match_all('/(\w+)=([^&]+)/', $_SERVER["QUERY_STRING"], $pairs);
    $_GET = array_combine($pairs[1], $pairs[2]);
    

    (Example only works for alphanumeric parameters, and doesn’t do the mentioned %xx decoding. Just breaks up the raw input.)

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

Sidebar

Related Questions

Say currently I have url like : http://mydomain.com/showpost.php?p=123 Now I want to make it
Say I have an AJAX application with this URL: http://www.foo.com/bar#!a=1&b=2&c=3 What will the crawable
Say I have this url. http://mydomain.local/category/12/garden#31/decking-treatment Can the part after the # i.e 31/decking-treatment
Lets say the url is http://example.com/product/3 and I only want to retrieve what is
Hi I have a url say http://www.foobar.com [webView loadRequest:[NSURLRequest requestWithURL:appURL cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:20.0 ]]; Now
I have a page request with a QueryString, say http://www.xyz.net/Orders.aspx?OrderID=1 . The page is
So I want to make a http request with a body (say file, file2,
Say I have a SSI script that uses exec, or a PHP script that
I do not know how to troubleshoot this problem. XMLHttpRequest cannot load http://gumball.wickedlysmart.com/?lastreporttime=1302212903099 .
For example, say I was using the twitter widget here: http://twitter.com/about/resources/widgets/widget_profile And I was

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.