php color change

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Garry Jones

    php color change

    I have a form that I have designed with colors. I am using php code to color
    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.

    Garry Jones
    Sweden




  • rlee0001

    #2
    Re: php color change

    Does your friend have google toolbar installed? If so, turn off the
    toolbar and the fields will go back to normal.

    -Robert

    Comment

    • milahu

      #3
      Re: php color change

      Since the HTML source must be identical on both clients, this is no
      longer a PHP problem.

      You should blaim Microsoft for its horrible browser... or maybe your
      invalid markup?

      Comment

      • Ehsan

        #4
        Re: php color change

        Hi Garry,

        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!!

        Ehsan


        Comment

        • ED

          #5
          Re: php color change


          "Garry Jones" <garry.jones@mo rack.se> wrote in message
          news:e2cl4u$sj0 $1@yggdrasil.gl ocalnet.net...[color=blue]
          >I have a form that I have designed with colors. I am using php code to
          >color 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.
          >
          > Garry Jones
          > Sweden
          >[/color]

          Hi Garry,

          Further to Robert & Ehsan's comments on Google Toolbar Autofill,
          you can find a javascript solution to the 'feature' at:
          Details how to override style hijacking by the Google Toolbar. Prevent input fields in your forms from turning yellow in Internet Explorer.


          cheers,
          ED


          Comment

          • Markus Ernst

            #6
            Re: php color change

            rlee0001 schrieb:[color=blue]
            > Does your friend have google toolbar installed? If so, turn off the
            > toolbar and the fields will go back to normal.
            >
            > -Robert
            >[/color]
            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.

            --
            Markus

            Comment

            Working...