Home > Backend Development > PHP Tutorial > PHP编程,表单查询数据后,数据特定显示方式求解?该如何处理

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

WBOY
Release: 2016-06-13 12:51:13
Original
759 people have browsed it

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


------解决方案--------------------
input value="$row[ID]"
------解决方案--------------------
假设你查询出来的数据保存在row数组中
在你HTML代码里这样写
" name="age" id="age" />
其他类推
Related labels:
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