Jump to content

do not save autocomplete for browser?


godsent

Recommended Posts

Im not sure this is the right section, sorry for that if it is.

 

So then you type something in text field or text area, and confirm it by clicking enter. The next time you type start of that text it will show variants you typed in the past.

 

If where's any way to stop the browser to remember these texts? Or just not show them

Link to comment
https://forums.phpfreaks.com/topic/143921-do-not-save-autocomplete-for-browser/
Share on other sites

You could try using PHPs header functions http://us.php.net/header to disable cache of the site.  The other thing you can do is give the text field a random name each time its loaded, this would trick the browser into not "remembering" the text.

random name works fine, but how should i get  data if name being different every time,

 

$msg = htmlspecialchars($_POST['message']);

 

my imput looks like this

 

<input name="message<?php echo rand(0, 1000); ?>" type="text" id="00" size="80%" maxlength="1000" onkeyup="showHint(this.value)" />

 

I thing looping is bad idea

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.