View Single Post
Old Jan 10th, 2005, 3:07 AM   #2
codetaino
Programmer
 
codetaino's Avatar
 
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4 codetaino is on a distinguished road
Talking

Hi,

The problem in your code resides in the line 21 when you calls the echo function to create the image with the link to the file:

echo "<p align=center><a href=$actuURL/$file><img border=0 onmouseover=roll_over('but1', '$bleb/dl_up.jpg') onmouseout=roll_over('but1', '$bleb/dl_dwn.jpg') src=$bleb/dl_dwn.jpg width=117 height=48 name=but1></a></p>";

When dealing with urls we have to take an extra step to convert the string of the location to fit the standard needs. Just calling the rawurlencode() function should solve your problem.

echo "<p align=center><a href=$actuURL/".rawurlencode($file)."><img border=0 onmouseover=roll_over('but1', '$bleb/dl_up.jpg') onmouseout=roll_over('but1', '$bleb/dl_dwn.jpg') src=$bleb/dl_dwn.jpg width=117 height=48 name=but1></a></p>";

I hope this information helps you,
codetaino

PD: sorry for my english... spanish is my primary language.
__________________
"God bless u all" :)
codetaino is offline   Reply With Quote