做好的表单,怎么不让用户进行修改。
$form['user'] = array(
'#type'=> 'textfield',
'#title' => '姓名(*)',
'#default_value' => $feedbacks["user"],
'#minlength' => 2,//长度
'#maxlength' => 10,//长度
);
如何生成下面的代码
<input type='text' name='user' value='admin' readonly=true/>
而不是下面
<input type='text' name='user' value='admin'/>