PHP编程,表单查询数据后,数据特定显示方式求解?

WBOY
Release: 2016-06-23 14:03:31
Original
826 people have browsed it

例如:表单form1有ID、age、sex字段,分别对应一个INPUT文本框,输入ID值,点击查询按钮,action提交到PHP处理页(mysql数据库查询),把查询结果及ID字段值显示到form1相对应字段的INPUT输入文本框中;如何实现这种显示功能?新手求解?急!谢谢!


回复讨论(解决方案)

input value="$row[ID]"

假设你查询出来的数据保存在row数组中
在你HTML代码里这样写
" name="age" id="age" />
其他类推

问题解决,谢谢!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template