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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:18:18+00:00 2026-06-16T07:18:18+00:00

I have created a very simple script to extract some parameters from the url

  • 0

I have created a very simple script to extract some parameters from the url using:
$_SERVER[‘QUERY_STRING’];

I have some values like this link:

http://test.com/r.php?gsgsg&0&1&0&sfs

The values are gsgsg 0 1 0 sfs.

Everything is fine when I use the link on own browser.

But when I press the link on a facebook post. I will only get:

gsgs 0 sfs

It seems like facebook removes my numbers.

I tried printing out the url I’m using to post the message in my app, all the values are there. But when I go in Facebook app and press the link, I am missing 2 int values.

Some one have a hint?

  • 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-16T07:18:19+00:00Added an answer on June 16, 2026 at 7:18 am

    A query string like this:

    gsgsg&0&1&0&sfs
    

    Is interpreted as:

    gsgsg=&0=&1=&0=&sfs=
    

    Just from that you can already imagine that the value of the first 0 gets clobbered by the next. Why Facebook misses the 1 value is unclear, but it’s common sense to apply variable naming rules to query string parameters.

    I’m not sure what you’re trying to do, but this would be much more reliable:

    s[]=gsgsg&s[]=0&s[]=1&s[]=0&s[]=sfs
    

    It generates an array $_GET['s'] of:

    Array(
            [0] => gsgsg
            [1] => 0
            [2] => 1
            [3] => 0
            [4] => sfs
        )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I have created a very simple asp.net web service using .NET framework 3.5,
I am using SQL Server 2008 Enterprise. I have created a very simple test
i have this very simple php script: <?php require 'functions.php'; $token = some-number; $id
I have created a very simple bookmarklet to submit the url of the site
I have created a very simple inno script through a wizard in InnoIDE. However
I have a very simple script that creates a user: <?php include 'mysqlserver.php'; session_start();
I have created very simple app with persistence context (hibernate as provider) to read
I have created a very simple sharepoint timer job. All i want it to
I have created a very simple GUI project in Qt as follows: main: #include
I have created a GUI for starting a Thread which does something very simple.

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.