php - How to echo Hyperlink Containing a Variable? -
In the code below, I would like to create a word that prints "$ submittor" as a hyperlink Is "http: //www...com/.../members/index.php?profile= $ submittor"
.
I can not get it to work; I think I am doing wrong formatting.
How can I do this?
Thanks in advance,
John
echo & lt; Div class = "sitename3name" & gt; Submitted by '$ submittor.' On '. $ Dt-> Format ('FJ, Y & amp; n \ nb \ sp & amp; \ nb \ sp g: i a'). ' & Lt; / Div & gt; ';
You have left the link.
$ link = "& lt; a href = 'http: //www...com/.../members/index.php?profile= $ submittor & gt; $ submittor & Lt; / a & gt; "; Echo '& lt; Div class = "sitename3name" & gt; presented by'. $ Link ' On '. $ Dt-> Format ('FJ, Y & amp; n \ nb \ sp & amp; \ nb \ sp g: i a'). ' & Lt; / Div & gt; ';
Comments
Post a Comment