老师好,name与value有什么区别呢?
phpcn_u224
phpcn_u224 2016-12-21 10:53:24
0
2
1116

input type为button,text时,value值在浏览器中显示,name供后台用;

为单选复选框时value值不显示,供后台用,name与value有什么区别呢?

phpcn_u224
phpcn_u224

reply all(2)
数据分析师

Hello teacher, what is the difference between name and value? -PHP Chinese website Q&A-Hello teacher, what is the difference between name and value? -PHP Chinese website Q&A

Please watch and learn.

阿神

name是元素的名字,value是供后台使用的,有些是在浏览器中显示的,有些则不显示,比如文本框的value就会显示,而选择框的value就不显示

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template