473,803 Members | 3,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


Apr 22 '06 #1
5 2375
Does your friend have google toolbar installed? If so, turn off the
toolbar and the fields will go back to normal.

-Robert

Apr 22 '06 #2
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?

Apr 22 '06 #3
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
http://ehsan.bdwebwork.com

Apr 22 '06 #4
ED

"Garry Jones" <ga*********@mo rack.se> wrote in message
news:e2******** **@yggdrasil.gl ocalnet.net...
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


Hi Garry,

Further to Robert & Ehsan's comments on Google Toolbar Autofill,
you can find a javascript solution to the 'feature' at:
http://code.jenseng.com/google/

cheers,
ED
Apr 22 '06 #5
rlee0001 schrieb:
Does your friend have google toolbar installed? If so, turn off the
toolbar and the fields will go back to normal.

-Robert

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
Apr 22 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
10750
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand where they have been. I also agree to the background: Too many web authors keep uniform link colors or their pages, thereby confusing the users. What I have a hard time agreeing to is his conclusion that web authors should deliberately change the...
5
27047
by: AFN | last post by:
I'm trying to set a submit button to change text and color when clicked. Like saying "please wait" instead of "submit" and then changing the background color and text color. All works, except for changing the text color. I can set style.background='red' to change the background color to red. But if I say style.color='green' to change the text color, it does not change. How do you change the text color on a button when it is clicked?
4
12737
by: Alexandre Jaquet | last post by:
Hi, I would like to know how can I change a row background color when an user select a row thx
11
19622
by: Yeah | last post by:
I have a multiple choice quiz where I would like to use CSS to change the color of the answers upon clicking them. I would like to present the right and wrong answers up front, rather than direct the user to a separate page with all correct answers. Do the answers have to be "links" for this to work? They have to be inactive links, because they don't actually go anywhere. They only serve the purpose of changing color whether they're...
2
4356
by: Sean | last post by:
Hi all, I have a treeview and because I subclass the treeview and allow multiple selection to be done on the treeview, I have a problem changing the background color of the treeview. The problem is that after I multi-select the treenodes, and I try to change the background color of the treeview, those treenodes that have been multi-selected before still
4
2976
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to change the font color of the text in the title bar... by default the title bar is that dark blue faiding into light blue and it has white text... is it possible to change the color of that blue bar and also the color of the text, for all the people who visit the asp.net website... really i want to have the text all to be whatever color, even white, but then 1 character half way through the...
3
15147
by: Roger | last post by:
Is this an easy thing to change? I want to put an option button on a form and want to dynamically change the color (Red, Yellow, Green) for showing a status. I figured it would be an easy task, but am finding it a little difficult as there isn't a simple property to set. Thanks, Rog
6
7050
by: Joe | last post by:
I want to fade a color to another color in a user control. Actually the color is the BackColor of the User control. What's the easiest way to do this? Thanks, Joe
6
3955
by: sr | last post by:
please help i have problem: I know how to change color row in table when my mouse is over on this row and change color to another color when my mouse is out from this row. but i dont know how to change color when i click on this row and change to third color and ,this color stay when my mouse is out.please help
0
9569
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.