How to echo Hyperlink Containing a Variable?
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-06-16T18:08:14Z
Indexed on
2010/06/16
18:12 UTC
Read the original article
Hit count: 293
Hello,
In the code below, I would like to make the word that prints out as the variable "$submittor" a hyperlink to "http://www...com/.../members/index.php?profile=$submittor"
.
I can't get it to work; I think I'm doing the formatting wrong.
How can I do it?
Thanks in advance,
John
echo '<div class="sitename3name">Submitted by '.$submittor.' on '.$dt->format('F j, Y &\nb\sp &\nb\sp g:i a').'</div>';
© Stack Overflow or respective owner