从PHP中的URL读取值

问题描述:

我在主页上有一个链接,例如

I have a link on Home Page say for eg

<a href="count.php?id=<?php echo $row['ID']; ?>&desc=<?php echo $row['PRO']; ?>" name="abc<?php $i; ?>">**Home**</a></li>

点击上方提供的首页链接,它将转到下一页

Once click on Home Link provided above it goes to next page that is

http://abb/MyWeb/pr/arro/count.php?id=4&desc=It%20isavailable

现在我想从URL读取值

Now I want to read value from URL

id=4desc=it is available

,我想将其存储在变量

$idenity = id1(将ID从url存储到变量中)

$idenity = id1 ( store the id from url to variable )

这是您想要的吗?

$identity=$_GET['id'];