Home  >  Article  >  Backend Development  >  php中怎样才能获取到 上一个页面的ID值啊

php中怎样才能获取到 上一个页面的ID值啊

WBOY
WBOYOriginal
2016-06-20 12:34:381750browse



这是第一个页面
点击登记按钮
跳转到第二个页面
怎么在第二个页面获取到第一个页面的id


回复讨论(解决方案)

代码已经写的很清楚了,只需要在第一个页面的php文件里输出$freebuy_item['id']到第一个页面就行了,跳转到第二个页面的url是这种格式checkin.php?id=123,你在第二个页面对应的php里用$_GET['id']就获取到了

url 传递
你不是有 id="+id 吗?
$_GET['id'] 不就取到了?

为什么前面要加个 # ?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn