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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:54:28+00:00 2026-06-04T16:54:28+00:00

I have a function which calls a script with this information in the GET:

  • 0

I have a function which calls a script with this information in the GET:

color = color_class(statistics[0]);
class = get_class(statistics[0]);
class = '<font style="color:'+color+';">'+class+'</font>';

switch(stage){
    case 1: call_file('tut_class.php?choice='+class,'main'); break;
}

This looks like this:

 <font style="color:#0d84b6;">Class One</font>

But in the Console it shows like this:

tut_class.php?choice=%3Cfont%20style=%22color:   //the rest is missing

And so i cannot obtain it in the PHP script to display. Is there a way to solve this ?

  • 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-04T16:54:30+00:00Added an answer on June 4, 2026 at 4:54 pm

    You should escape the string before adding it to the URL with urlencode, and later use urldecode to unescape it.

    Edit: oops, you are writing javascript. You should use javascript’s encodeURIComponent to encode the string, and not PHP’s urlencode.

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

Sidebar

Related Questions

I have a class ( EAGLView ) which calls a member function of a
I have a Javascript function which calls a PHP script on my server. In
I have matlab function that calls a Perl script which converts a large text
I assume this script calls itself everytime with the .call(this) function which explains why
I have a simple script which calls a function that is set in the
I have a function which calls several other functions, e.g. sub do_work { send_mail();
I have foreach function which calls specified function on every element which it contains.
i have written a c++/cli program which calls my native c++ function which has
I have a simple onclick feature which calls a function but im getting an
I have a python program which calls a C function. I send some structures

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.