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.
"; $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++; } ?>