Online Shopping : 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?

73 of 185 people (39%) answered Yes
Recently 5 of 10 people (50%) 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>";