Page 1 of 1

Disabling AutoComplete in text input fields

Posted: Mon Jan 21, 2008 10:11 am
by Tor Vidvei
I'm developing a traning page for basic math. The answers are entered by the user in simple text input fields and the same page is returned (after having been processed by php) to the user with the results.

If the AutoComplete feature is turned on, a droplist with previous entries are displayed in the answer fields, even if new exercises are generated. This is quite disturbing. Is there any way I can block this feature from my php-code, even if it is turned on in the users browser?

Regards
Tor Vidvei

Re: Disabling AutoComplete in text input fields

Posted: Mon Jan 21, 2008 12:00 pm
by Christopher
Take a look into the page caching headers. I think you can tell the browser not to cache the values. But browsers can try to be pretty smart. You may need to change the field input name to prevent this.