What's the problem?
I am currently trying to validate my client's website, but cannot resolve the following issue.
Bad value /php/captcha_code_file.php?rand= for attribute src on element img: Illegal character in query: not a URL code point.
The full line that the validator points to can be found below.
<html>
<!-- ... -->
<img src="/php/xyz.php?rand=<?php echo rand();?>" id="captchaimg" alt="captcha"><br/>
<!-- ... -->
</html>
What have I done?
It's my understanding that any spaces in URLs are to be replaced with %20, but I can't imagine that would be the problem inside the actual query - especially since I've tried this already and received the same error.
Edit: My question is not about validating the PHP the src property is pointing to, but rather how the value/string is formatted for src.