Pass PHP variable value into HTML label [closed]

<label> tags do not have a value attribute. The label text goes in between an opening and closing </label> tag.

<label class="control-label"><?php echo $name; ?></label>

See the MDN page for <label> to learn more about this tag.

Browse More Popular Posts

Leave a Comment