adrian pascua adrian pascua - 1 year ago 102
PHP Question

how to add underline below php value

hello guys im trying add a long line below my

<?php echo '$word'; ?>
and im only getting a underlined word. what i want to get is like this:

Name of the Owner: SAMPLE NAME HERE Birthdate:
_____________________________________ ____________

just like that. and here my current code:

<input type="text" class="form-control input-sm" name="name" placeholder="" size="10" style='margin-right:.3em; border: none; border-color: transparent; pointer-events:none;text-decoration: underline;' value="<?php echo $fullname; ?>">

NOTE: please dont mind the in-line CSS. thanks guys

Answer Source

PHP does not support underline in string values. You can use CSS. Eg below:

input {
  border: none;
  box-shadow: -2px 5px 0px -2px grey, 2px 5px 0px -2px grey;
input:focus {
  outline: none;
<input type="text" value=""/>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download