Jump to content


Show Windows UNC path without SERVER_ROOT attached to it

  • Please log in to reply
1 reply to this topic

#1 solarisuser

  • Members
  • PipPipPip
  • Advanced Member
  • 122 posts

Posted 22 April 2006 - 12:37 AM

Hello All,

I am trying to echo a field that has "\\\blah\blah" in an <A HREF> tag. So for example:

$path = "\\\blah\blah";
echo "Path is <A HREF=\"$path\">Go Here</A>";

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?

#2 rawb

  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 22 April 2006 - 12:52 AM

Have you tried...

$path = "\\\blah\blah";
echo "Path is <A HREF=\"#\" onClick=\"window.location='$path';\">>Go Here</A>";

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users