Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php color change
- Garry Jones
April 22, 2006, 7:15 am
rate this thread
it depending upon other values.
On my pc the colors are ok. From a friends pc every field with the word
email in had a different colour. When I change the spelling of "email" to
"emial" the colours displayed on his pc revert back to the colours I have
set. We are running identical versions of windows and msie. Except mine is
the Swedish version and he has the English version.
The offending field contains a text label and an input control. If either
the text label or the name of the input control contains the word "email"
the colors are morphed. The main problem with this was that the input field
was changed to yellow text on a yellow background.
Is this because I am supplying the colors by php code or is it a problem for
all forms? What I can not fathom is why he has different colors to the ones
I have designed and why this "feature" was not displayed on my pc. We both
use std settings in MSIE.
Re: php color change
The existence of Google Toolbar might be a reason to avoid yellow text
in form fields, except if you don't mind to display a notice that asks
all your users to turn off their toolbars, or to check for the toolbar
with client side scripting trickery.
BTW I suggest to avoid too much styling on form fields, as their general
appearance is quite conventional, and the more your field looks
different from common form fields, the less it will be recognized as a
form field - which reduces the usability of your form. I don't see a
reason for negative text in dark colored form fields, except "looking
different", which may be cool if applied to the overall appearance of a
site, but bad in the places where functionality is required.
Re: php color change
As Robert has suggested turn off the Google toolbar on your friend's
pc. If your friend's pc has Google toolbar installed and values are set
for AutoFill then the mentioned problem will occur. "email" is a common
keyword that people uses to name their form input text field, and is
picked up by Google's AutoFill feature, changing the color to Yellow.
Either turn off the Toolbar or change the field's name. Either way it
should work fine.
Thanks and God Bless!!