anoying problem with spaces.....`
Moderator: General Moderators
- dull1554
- Forum Regular
- Posts: 680
- Joined: Sat Nov 22, 2003 11:26 am
- Location: 42:21:35.359N, 76:02:20.688W
anoying problem with spaces.....`
i have written a picture gallery but if the image has a space in the file name, it does not display, i was wondering how i can fix this.
enclose src attribute value in quotes:
instead of
use:
instead of
Code: Select all
<img src=some picture.jpg>Code: Select all
<img src='some picture.jpg'>- dull1554
- Forum Regular
- Posts: 680
- Joined: Sat Nov 22, 2003 11:26 am
- Location: 42:21:35.359N, 76:02:20.688W
thankyou weirdan, i would have never thought of something so simple,i was about to write a script to change all spaces to dashes to fix my problem, but this was much easier, and qads, see whenever i upload a file i make sure there are no spaces b/c i no that many systems do not like spaces, but the script i've been working on is for someone elses website, and they may upload files with spaces, but thanks for the suggestion