Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple anchor <a> </a> problem

Status
Not open for further replies.

sanjdhiman

Programmer
Jan 15, 2003
189
0
0
GB
Hi i have a quick problem, i have the following anchor,

Using php and mysql i have stored $url with a company's url,e.g.
problem is when i click it from the bottom link it shows....
http:\\localhost\
do you know wat the problem is anyone

<a class=body href=http:\\&quot;.$url.&quot;>$url</a>

thanks in advance
 
Sanjdhiman,
I had a similar problem and I solved it storing the complete url in the record (e.g.: note the direction of the slashes) to make it &quot;absolute&quot;.

Gaetano
 
thanks people... it works now cheers for the advise

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top