Link to home
Create AccountLog in
Avatar of rockymagee
rockymagee

asked on

Disable Auto Populate

Is there a way to disable the auto populate function client side so that when users are filling in forms it does not display previous form entries?

Thanks in advance
Avatar of kamichie
kamichie

I'm assuming you talking about IE, Mozilla, or Netscape browsers automatically poulating the information in form fields. There isn't a really simple way to stop this, since it's happening client side you don't have much say.

However, all hope is not lost. The way the auto populate works is by comparing a databse of form names and web pages to the currently viewed page. If it finds a match it displays a list of previously typed answers. To stop this from working you could write you server side script to randomley generate the field names every time the page is loaded. This would cause the form names to be diffrent ever single time the user visted the page. Here is some psuedo code to help out.

<%
string ibox1
ibox1==generate_random_name()
%>

<html>
<form>
<input type='textbox' name=<% write ibox1 %>>
</form>
</html>
ASKER CERTIFIED SOLUTION
Avatar of wranlon
wranlon

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Dang, I thought I had seen somebody else do it like that, but for the life of me I could not google an answer. Well the above post should suit your needs.
Avatar of rockymagee

ASKER

Simple as autocomplete=off ..... Nice !

With further research I discovered the autocomplete=off works:

For IE in both the <form> and individual <input> tags.

For Firefox only in the <form> tag ;)

Thanks!