Home > php教程 > php手册 > body text

php怎么控制input输入框

WBOY
Release: 2016-06-06 19:43:06
Original
1038 people have browsed it

ph【本文来自鸿网互联 (http://www.68idc.cn)】p如何控制input输入框 inputclass="modal-text-inputmodal-text-input-double"name="modal-username"type="text"value="?php if(isset($_GET['modal-username'])){ echohtmlspecialchars(stripslashes($_GET['mo

ph【本文来自鸿网互联 (http://www.68idc.cn)】p如何控制input输入框
if (isset($_GET['modal-username'])) {
echo htmlspecialchars(stripslashes($_GET['modal-username']));
} else echo “123456";
?>">

这个input标签的value值被php语句控制,可以显示123456或者model-username的值

但是我想不仅能显示,还要在用户点击这个input框后,获得焦点并允许用户对input 框中内容进行修改

应该怎么写代码,请多指教
------解决思路----------------------
你的input标签又没有设置属性 disabled=disabled  ,点上去应该就能修改input的内容的
------解决思路----------------------
你这输入框本来就可以修改   如上所说 input标签又没有设置属性 disabled=disabled
------解决思路----------------------
可以正常显示,填写数据,修改。
除非modal-text-input modal-text-input-double 这个样式有控制论readonly
------解决思路----------------------
本来就能修改呀
------解决思路----------------------
应该那些class样式起的作用 把class删除了 就能改了 
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!