Simple PHP question - I am new at this

I have a simple php file below which captures 3 pieces of info (first name, last name, website address).
The one line of code I need help with is this one
echo “$first$last



”;
If someone types in this info into the form
First name = jon
Last name = smith
Website address = http://www.aol.com

and I put my mouse over “jon” on the output screen, the link will show http://http://www.aol.com
if I change the code to
echo “$first$last



”;
and I put my mouse over “jon” on the output screen,
the link will show a relative path (not absolute path) to http://mywebsite.com/http://www.aol.com

Question: My goal is to put the mouse over “jon” and have it map to just http://www.aol.com
Therefore, if someone clicked on “jon”, it would go to http://www.aol.com
Thanks in advance for your help.

<? include("dbinfo.inc.php"); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM contacts"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); echo "Database Output

"; $i=0; while ($i < $num) { $first=mysql_result($result,$i,"first"); $last=mysql_result($result,$i,"last"); $website=mysql_result($result,$i,"website"); echo "$first$last

"; $i++; } ?>
Sponsor our Newsletter | Privacy Policy | Terms of Service