Doug Posted July 12, 2013 Share Posted July 12, 2013 I've been trying to solve this for the past 2 days! Please help. I get this message while trying to validate the code. bad value %20images/image_name%20 for attribute src on element img: Whitespace in path component. Use %20 in place of spaces. There is no white spave in the lines below. OR is there? I have put %20 in all white space if (is_file(MM_UPLOADPATH . $row['picture']) . filesize(MM_UPLOADPATH . $row['picture']) > 0){echo'%20<a href="pictures.php">%20<img src="%20' . MM_UPLOADPATH . $row['picture'] . '%20" alt="sevenoaks latest pic" style="width:75px; maxheight:110px; margin:5px; padding:5px;"></a>'; Quote Link to comment https://forums.phpfreaks.com/topic/280098-whitespace-in-path-component-use-20-in-place-of-spaces/ Share on other sites More sharing options...
trq Posted July 12, 2013 Share Posted July 12, 2013 What exactly are you trying to validate the code with? If its html validation your talking about, why don't you show us the html this code produces? Quote Link to comment https://forums.phpfreaks.com/topic/280098-whitespace-in-path-component-use-20-in-place-of-spaces/#findComment-1440470 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.