solarisuser Posted April 22, 2006 Share Posted April 22, 2006 Hello All,I am trying to echo a field that has "\\192.168.1.1\blah\blah" in an <A HREF> tag. So for example:[code]$path = "\\192.168.1.1\blah\blah";echo "Path is <A HREF=\"$path\">Go Here</A>";[/code]The problem is, when you put your mouse over it the link, you'll notice that the server root was added to the beginning. The only way I know to fix it is to put "http://" in front of $path, but that doesn't make any sense. Anyone know how I can get around this? Quote Link to comment Share on other sites More sharing options...
rawb Posted April 22, 2006 Share Posted April 22, 2006 Have you tried...[code]$path = "\\192.168.1.1\blah\blah";echo "Path is <A HREF=\"#\" onClick=\"window.location='$path';\">>Go Here</A>";[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.