Excuse me: What is the way to transfer variables in the URL?

Source: Internet
Author: User
I remember, as if I could add some variables to the URL, such as: http://www.abc.com# ....

It's like a series of characters starting with the # number. So, what is the specific format? In PHP, how do I read these variables?

Now it's important to use this, thank you very much!


Reply to discussion (solution)

Seems to be "? ", but what is the specific way to use it?

You directly add is, get the words, Print_r ($_get); Will know.

You directly add is, get the words, Print_r ($_get); Will know.
Thank! I've tried it, it's ready to use.

But can I ask: Is it only a character variable to transmit? Is there a way to pass integer variables? (as if it were only a character type, because it was sent in the URL, right?) )

That's it, you convert it.


You directly add is, get the words, Print_r ($_get); Will know.
Thank! I've tried it, it's ready to use.

But can I ask: Is it only a character variable to transmit? Is there a way to pass integer variables? (as if it were only a character type, because it was sent in the URL, right?) )
First of all, you use the # symbol is not a variable, but a fragment, simply can not be passed to the server side, will only stay in the browser side, his role can be understood as Web bookmarks.
Second, even if this can be passed to the server side, the server will agree that this is a string variable, the key is how you recognize this variable. Type conversions and the like.


You directly add is, get the words, Print_r ($_get); Will know.
Thank! I've tried it, it's ready to use.

But can I ask: Is it only a character variable to transmit? Is there a way to pass integer variables? (as if it were only a character type, because it was sent in the URL, right?) )
First of all, you use the # symbol is not a variable, but a fragment, simply can not be passed to the server side, will only stay in the browser side, his role can be understood as Web bookmarks.
Second, even if this can be passed to the server side, the server will agree that this is a string variable, the key is how you recognize this variable. Type conversions and the like.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.