How PHP implements clicking a link in one site jumps back to another page and outputs a specific value

Source: Internet
Author: User
My space now has a index is I do the home page and a folder D inside is a WordPress also has the index file
My Web page A has two links but actually two links to the same URL B (this URL is the homepage of WordPress) but I want to click on the different links on the B URL output value is different. The following is what I do, but I don't know how to change the trouble, thanks for the change.
File for URL A
Global $shuchuid;
echo "Link One



Link Two ";

File for URL b
Global $shuchuid;
echo $_get[' Shuchuid '];


Reply to discussion (solution)

echo "Link One



Link Two ";
Give it a try

http://www.colg.biz/pinfo.php, look what I wrote, this must be dripping.

Well, can I ask why? That's not to say the whole thing as a web address. Why would it output 1 ah, and I didn't set this URL on the site. Why would I read it? Home Thank you

echo "Link One



Link Two ";
Give it a try

Well, can I ask why? That's not to say the whole thing as a web address. Why would it output 1 ah, and I didn't set this URL on the site. Why would I read it? Home Thank you

The specification for URLs and get values is ... I've never seen a URL with a quoted number.

Your initial form of writing generates a Web page that becomes a link

The equivalent of just linking to B.Com and customizing Parameters Shuchuid = ' 1 ' did not pass through

========================
I did not set this URL on the website ah why can read out the homepage

I didn't see it.

But http://b.com/in WP can be seen as http://b.com/index.php or http://b.com/index.html is not what you mean

Http://b.com/?shuchuid=1
The meaning of this URL is to link to http://b.com/this address, pass a parameter shuchuid its value is 1

Besides, http://b.com/?shuchuid=1 and http://b.com?shuchuid=1 are different.

Http://b.com/?shuchuid=1
The meaning of this URL is to link to http://b.com/this address, pass a parameter shuchuid its value is 1

Besides, http://b.com/?shuchuid=1 and http://b.com?shuchuid=1 are different.
I'm going to try both of these two outputs. 1 What's the difference?

These two are not different on the parameters but they point to the link (possibly) different here they point to the same link ...

You don't have to dwell on this for the moment ...

Oh, thanks, hehe.

  • 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.