[英]php form input type=“text” echo label below for specific field
php form, automatically generated through module. php表格,通过模块自动生成。 I would like to be able to put "label"/message below for one specific text box (ie field 3: first name only).
我希望能够在一个特定的文本框下面放置“标签” /消息(即字段3:仅名字)。 There are multiple text fields
有多个文本字段
Child's name:
<input type="text" value="" name="field3" size="30">
Last name:
<input type="text" value="" name="field7" size="30">
Php p
<?php
} elseif ($field['type'] == 'textarea') {
?>
<textarea name="<?php echo $key; ?>" style="width: 70%; height: 100px">
<?php
echo ${$key};
?>
</textarea>
If it's only for one specific item you would want to add something like.. 如果仅用于一个特定项目,则需要添加类似内容。
<?php
echo($key == "field3" ? "Your phrase for firstname here" : "");
?>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.