[dev] Disable form autofill?

Eric Rostetter eric.rostetter at physics.utexas.edu
Mon Jul 21 15:25:53 PDT 2003


Quoting John Morrissey <jwm at horde.net>:

> % It should be disabled in your browser.  See
> % http://www.horde.org/faq/admin/config/index.php#c29
>
> I'm working on the Signup code and only want to disable autofill for that
> one form

Fine, you have a right to that opinion. :)

> - it doesn't make sense to autofill the 'add user' form with your
> own login data :-).

Nor does it make sense to autofill a lot of stuff with your own login data,
but if you enable autocomplete in the browser, it will none-the-less happen.

> Looks like autocomplete="off" should do it. Thanks,

Note that it isn't xhtml compliant, which is one of the big reasons it isn't
in the code.

The simpler way to stop it from autofilling for that one form would be to
change the form field names to something which won't autofill (and note in
comments why there are named that way).  This not only solves the problem,
but does it in a fully compliant and more fool-proof manor.

--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the dev mailing list