Php obtains the address bar parameter question www. xxx. complusplay. php? Aid24388 & amp; play1 get the url address in php and detect play1 + 1 when play1 is play2. I wonder if it can be implemented? The following is the link call list: & nbsp; & lt ;? Phpfor ($ i0; $ I & lt; count ($ palylist php get 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