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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:54:07+00:00 2026-05-11T19:54:07+00:00

I have an odd problem. Our company collects data and we use a HORRIBLE

  • 0

I have an odd problem. Our company collects data and we use a HORRIBLE piece of software to handle all of our phone interviewing. It uses binary files instead of SQL and uses no compression. As of right now we have to manually run all reports for the clients. I am working on building a web interface to our data and common reports.

Now I need to pass whats called a “select statement” from the web to the server and I do this with php post method. The problem is that web browsers don’t seem to like some of the characters that have to be used in select statements. I have tried encoding them but then the browsers auto uncode them back to plain text when they are hyperlinks.

Here are some example select statements.

[3023.2#1] 
[3023.2$] = "1"
[3023.2<>1]
[500.10$] = "Name"

And the url would look something like

CustomReport.php?type=1&select="[3023.2#1]"

The problem I have is that different select statements break the website depending on quotes used. select=[3023.2<>1] wont work but select=”[3023.2<>1]” does. BUT if I do select=[3023.2#1] it will work and using quotes will break it. And when it breaks it neither WebDev toolbar nor FireBug report any errors but its obvious my DIVs are all messed up.

I should also add that nowhere is the select statement displayed on the site, it is only used in php as part of an exec command so I’m really confused as to why this breaks my site.

/Ropes End
//Probably something stupid

  • 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-11T19:54:07+00:00Added an answer on May 11, 2026 at 7:54 pm

    You want to research rawurlencode and htmlentities. They should help you immensely.

    Aside: The note from anonymous to be cautious passing executable commands over urls MUST be heeded. It sounds like your application is not on the public web, but if it is you need to be mindful of the security issues associated with that.

    <?php 
    
    $select_statements = array(
        '[3023.2#1]',
        '[3023.2$] = "1"',
        '[3023.2<>1]',
        '[500.10$] = "Name"',
    );
    
    foreach ($select_statements as $ss) {
        print htmlentities($ss);
        print "<br>";
        $url = $_SERVER['PHP_SELF'] . "?type=1&amp;select=" . rawurlencode($ss);
        print "<a href=\"{$url}\">{$url}</a>";  
        print "<br>";
        print "<br>";
    }
    
    print htmlentities($_GET['select']);
    
    ?>
    

    Results (for me):

    [3023.2#1]
    /CustomReport.php?type=1&select=%5B3023.2%231%5D

    [3023.2$] = “1”
    /CustomReport.php?type=1&select=%5B3023.2%24%5D%20%3D%20%221%22

    [3023.2<>1]
    /CustomReport.php?type=1&select=%5B3023.2%3C%3E1%5D

    [500.10$] = “Name”
    /CustomReport.php?type=1&select=%5B500.10%24%5D%20%3D%20%22Name%22

    And if I click on a link I will also see whichever select I put in. Properly put into html entities, of course.

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

Sidebar

Related Questions

I have this odd problem with a third party script. On our site a
I have a very odd problem. Whenever I try to use the Add View
I have odd problem: After starting server I got this error: undefined local variable
I have an odd problem with Django. I have a set of objects that
I have an odd problem where Hibernate is running more queries than I've asked
I have a odd problem with Google Maps APIv2 markers. I'm making a site
I have an odd problem. Basicly my page works fine however after a small
I have an odd problem when using the return result of a function and
I have an odd problem with one of my Razor views in an ASP.NET
I am having a rather odd problem with the Gecko Webbrowser control, I have

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.