View Single Post
  #3 (permalink)  
Old August 19th, 2004, 07:12 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You must escape the slashes by doubling them up:
C:\\myFolder\\myPic.jpg
I don't know if there's a php function to do that.
Alternatively write the path to a hidden form element with a known name and use that as you functions argument:
Code:
<input type="hidden" name="filePath" value="$PicturePath">
showPic(document.forms[0].filePath.value);
--

Joe
Reply With Quote