Links With Spaces Don't Work
Posted: Tue Sep 12, 2006 12:09 am
i have a working upload script, but whenever you try to upload anything with a space, the link won't work. i mean, it does work, and if u type it in manually it works, but the link that is echo'd after the upload:
here is the link to your Image: number one.jpg
(and the link for "number one.jpg is: "http://www.csscobalt.com/uploads/number")
dosn't work, because it just take the first word if it has spaces. it does:
"http://www.csscobalt.com/uploads/number"
instead of
"http://www.csscobalt.com/uploads/number one.jpg"
but the wierd thing, is that the text will say, "here is the link for number one.jpg" and it works their, just not for when it does the link!
anway, here is my PHP code:
http://www.csscobalt.com/uploads/upload_php.txt
how can i fix this?
here is the link to your Image: number one.jpg
(and the link for "number one.jpg is: "http://www.csscobalt.com/uploads/number")
dosn't work, because it just take the first word if it has spaces. it does:
"http://www.csscobalt.com/uploads/number"
instead of
"http://www.csscobalt.com/uploads/number one.jpg"
but the wierd thing, is that the text will say, "here is the link for number one.jpg" and it works their, just not for when it does the link!
anway, here is my PHP code:
http://www.csscobalt.com/uploads/upload_php.txt
how can i fix this?