godsent Posted February 5, 2009 Share Posted February 5, 2009 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 More sharing options...
s0c0 Posted February 5, 2009 Share Posted February 5, 2009 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. Link to comment https://forums.phpfreaks.com/topic/143921-do-not-save-autocomplete-for-browser/#findComment-755274 Share on other sites More sharing options...
godsent Posted February 5, 2009 Author Share Posted February 5, 2009 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 Link to comment https://forums.phpfreaks.com/topic/143921-do-not-save-autocomplete-for-browser/#findComment-755289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.