PHP中获取GET的值?

PHP中获取GET的值


摇曳的蔷薇
浏览 1323回答 2
2回答

慕丝7291255

playall.php?id=1&id=2&id=3&a=ok换成:playall.php?id1=1&id2=2&id3=3&a=ok参数名不能有重名$ID = $_GET["id1"] + "," + $_GET["id2"] + "," + $_GET["id3"];

12345678_0001

加号是js用的啦~~应该这样组合,用.$ID = $_GET["id1"] . "," . $_GET["id2"] . "," . $_GET["id3"];其实很奇怪既然要那种形式为什么不直接playall.php?id=1,2,3&&a=ok这样传值~~
打开App,查看更多内容
随时随地看视频慕课网APP