faqts : Computers : Programming : Languages : PHP : Common Problems : URLs

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

72 of 181 people (40%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I create a dynamic hyperlink in PHP?

May 16th, 2000 11:38
Matt Gregory, Nasser Ghoorun, Nathan Wallace,


Standard hyperlink echoed in PHP
echo "<a src=\"http://www.mysite.com/index.html\">mysite</a>";
Dynamic hyperlink echoed in PHP where $urlvar is the variable URL.
echo "<a src=\"$urlvar\">$urlname</a>";