View Single Post
  #4 (permalink)  
Old August 19th, 2004, 10:33 AM
bleitner bleitner is offline
Authorized User
 
Join Date: Nov 2003
Location: Phoenix, AZ, USA.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by joefawcett
 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
Thank you Joe!

PHP has a built in function, addslashes(), which doubles up the slashes, and this worked beautifully! Got any suggestions for my other post about opening a file browse dialog to a specified location?

Thanks again!
Bob

Reply With Quote