In a form I have an input type text in which I save the address where I have a file.
I’d like to put it in the form of a link so people could click through and read it.
I can get the address to appear in it, but I don’t quite show the link well.

So far I’ve put the following:
<input type="text" class="form-control" name="file" placeholder="Documento" value="<a href='<?php echo $text; ?>'>FACTURA</a>">
And the result is this:


I’ve searched several websites and can’t find a way to get it right.

New contributor

Charly Utrilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.