Home  >  Article  >  Web Front-end  >  Problem with passing special symbols in get request

Problem with passing special symbols in get request

一个新手
一个新手Original
2017-09-20 10:12:223492browse
    The meaning of special characters
    ————————————————————————————
    Characters The meaning of special characters URL encoding
    # Used to mark a specific document location %23
    % Encode special characters %25
    & separates different variable value pairs %26
    + represents a space in the variable value %2B
    \ represents the directory path %2F
    = Used to connect keys and values ​​%3D
    ? Represents the beginning of the query string %3F
        ——————————————————————————————
    When a string containing special characters with special functions in the above list is passed as a parameter in the GET method, it only needs to be processed with the URLENCODE method. If you don’t want the viewer to see the specific value of the string containing the HTML TAG, we can use HTMLENCODE to process it.

The above is the detailed content of Problem with passing special symbols in get request. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Override bind methodNext article:Override bind method