Php questions about getting address bar parameters

Source: Internet
Author: User
Php get address bar parameters question http://www.xxx.com/plus/play.php? Aid = 24388 & amp; play = 1 get the url address in php and check if play = 1 + 1 is play = 2 when play = 1. I wonder if it can be implemented? The following is the link call list: & nbsp; & lt ;? Phpfor php address bar parameters
Http://www.xxx.com/plus/play.php? Aid = 24388 & play = 1
Use php to obtain the url address and check whether play = 1 + 1 means play = 2 when play = 1?
The following is the link call list:
$ List = explode ('{span}', $ palylist [$ I]);
If (empty ($ list [0]) continue;
If (empty ($ list [1]) continue;
$ Playid = $ I + 1;
?>
& Play = " >
Echo $ list [0]?>
}?>

The expression is not very good. take a closer look at what it means. sorry!

------ Solution --------------------
Write at the top of the page:
$ Play = $ _ GET ['play'];
If ($ play = 1) $ play = $ play + 1;
?>
------ Solution --------------------
Does the landlord mean
Address: www.xxx.com/plus/view.php? Aid = 24388 & play = 2
The displayed content is "www.xxx.com/plus/view.php? Aid = 24388 & play = 1"
That is, www.xxx.com/plus/view.php? Aid = 24388 & play = 1 the address bar should be displayed
Www.xxx.com/plus/view.php? Aid = 24388 & play = 2

------ Solution --------------------
I found that the landlord made a simple problem complicated. according to your own statement on the 11th floor:
$ Play = $ _ GET ['play'];
If ($ play = 1) $ play = $ play + 1;
?>
Is the core... add up to a few IF

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.