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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:19:35+00:00 2026-06-15T19:19:35+00:00

I am looking for a way to interpret data in a URL, server side.

  • 0

I am looking for a way to interpret data in a URL, server side.
Client side, I can control what the URL is, and I can programmatically produce Data for the URL, but I do not have direct access to the source code.

So ultimately, I am trying to build an online High Score system, for an offline game.

I have access to Azure and my dedicated LAMP server. I would like for my server to wait for a connections that use a URL something like “http://www.myappserver19002393859.com/HighScores?UserID=2fb44e3888?Score=25250”
I want to get the UserID & Score from the URL and then redirect to another page with the High Score Table…

Any suggestions?

(Edit: I can do anything server side, it is only client side where I have limitations.)

  • 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-15T19:19:36+00:00Added an answer on June 15, 2026 at 7:19 pm

    Use PHP’s $_GET collection. It contains the key/value pairs of a URI’s querystring.

    In the example you’ve given, it would look like this:

    HighScoresHandler.php

    <?php
    $userId = $_GET['UserID'];
    $score  = $_GET['Score'];
    
    // Validation
    
    if( empty( $userId ) || empty( $score ) ) {
        echo "No UserID or Score provided.";
        exit();
    }
    $score = intval( $score );
    if( $score === 0 ) {
        echo "Invalid score specified.";
        exit();
    }
    
    // Verification
    
    // TODO: Query your database to ensure the user specified by $userID exists.
    // Make sure you do this safely as not to be subject to SQL injection.
    
    $sql = "SELECT COUNT(*) FROM Users WHERE UserID = @userId";
    
    // Action
    
    $sql = "INSERT INTO HighScores ( UserID, Score ) VALUES ( @userId, @score )";
    
    
    ?>
    

    Note that you would be advised to implement some form of MAC (Message Authentication Code) or some other system to verify that a score is real, otherwise there is nothing stopping anyone from submitting bogus scores using forged HTTP requests (this is why you sometimes see insanely high scores posted to online scoreboards).

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

Sidebar

Related Questions

I'm looking for way to write Javascript programs / scripts on desktop, not inside
First, I'm not looking a way to parse an RSS-feed. I am creating an
I have been looking around the internet for a way to display specific content
I have been looking for a way to do this all around the internet
I Was looking for a way to scan mp3 meta-data yesterday and i found
I'm looking for a way to deploy an Internet Explorer plugin for SVG-rendering without
I'm looking for a way to ship the Python interpreter with my application (also
I'm looking for way to create list view as like in IOS with pinned
I'm looking a way to enable IP logging with log4net in ASP.NET. I found
I'm looking a way to build conditional assignments in bash: In Java it looks

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.