Quote:
Originally Posted by gio~logist
I understand.. however, why would it work in some places and not others? Say a member on my forum doesnt know this and they put ff0000, then how would i make it so it still shows o_0?
|
Some browsers (e.g. IE) do not need compliant code to render it, therefore meaning they interpret "ff0000" as "#ff0000"...
You could probably use some kind of regular expression to add a # infront of the 6 digit hexadecimal value if one does not exist, or you could limit the user using such a tag, and instead have an entry field, where you instruct them to only enter the 6 digit hexademical value, have the insert/update query automatically add a # to the front of the field value, after stripping any #'s that appear in the field that were entered by the user
Satan