Page 1 of 1

Simple code needed please (writing a html url)

Posted: Fri May 28, 2010 11:08 am
by webman
Hello,

I have these two variables:

$link :the remote site's url
$title :the remote site's name

I need a php code that produces this html code:

<a target="_blank" href="$link">$title</a>

Thanks in advance for you time!

Re: Simple code needed please (writing a html url)

Posted: Fri May 28, 2010 11:40 am
by dimxasnewfrozen
You had it right almost.

index.php

Code: Select all

<a target="_blank" href="<?php echo $link; ?>"><?php echo $title; ?> </a>