Home > Backend Development > PHP Tutorial > PHP中select上拉框的有关问题

PHP中select上拉框的有关问题

WBOY
Release: 2016-06-13 10:51:24
Original
749 people have browsed it

PHP中select下拉框的问题
这是一个修改页面下拉框
我想要每次打开修改页面默认的是从数据库读出来的值$project_department,但是现在每次都显示的是 “ 请选择”
请教大神们如何写?我在下面写了一个 但是这个没起到什么作用啊

------解决方案--------------------
为你的select框添加 id='project_department' 


这样试试,其实输出时就应该控制了。
------解决方案--------------------
2楼的可以,要是不行了再把问题贴出来至于只有一个显示的问题,最好把代码看看然后重写一遍有时会出现这种问题

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