Home  >  Article  >  Backend Development  >  从php页面中获取ID传接到表单里.能解决么

从php页面中获取ID传接到表单里.能解决么

WBOY
WBOYOriginal
2016-06-13 13:15:44860browse

从php页面中获取ID传递到表单里..能解决么?
有两个PHP文件...a.php和b.php
a.php中有一个链接,点了之后会以get方式传递一个id到b.php
问题来了,现在我想在b.php中新建一个表单,表单里需要用到传递到b.php的id来更新数据
该怎么做?

------解决方案--------------------
a.php:

此处跳转到b.php

b.php:
//取得传来的id
$id=$_GET['id']+0;




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