![]() |
after form submit and use back button..form have values...need to remove - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: after form submit and use back button..form have values...need to remove (/showthread.php?tid=18946) Pages:
1
2
|
after form submit and use back button..form have values...need to remove - El Forum - 05-23-2009 [eluser]dine[/eluser] I am feeling very great for getting such all imp reply from your sides. what I do is set Quote:body onload = "document.form1.reset(); " and i think it's working fine. after form submit and use back button..form have values...need to remove - El Forum - 05-23-2009 [eluser]dine[/eluser] Can you please guide me as you did earlier for last reply by *dine* http://ellislab.com/forums/viewthread/114736/ after form submit and use back button..form have values...need to remove - El Forum - 05-23-2009 [eluser]Vi.[/eluser] Here is working solution; Add this code to between <head></head> tags Code: function clear(){ Code: onload='clear()' onUnload='clear()' It is working on Opera, Internet Explorer and Firefox. after form submit and use back button..form have values...need to remove - El Forum - 05-24-2009 [eluser]TheFuzzy0ne[/eluser] Won't that be useless if you are validating the input? If anything is wrong, the input controls will still be emptied when the page is reloaded. after form submit and use back button..form have values...need to remove - El Forum - 09-24-2009 [eluser]sheri.nust[/eluser] [quote author="dine" date="1243105267"]Can you please guide me as you did earlier for last reply by *dine* http://ellislab.com/forums/viewthread/114736/[/quote] do you want ,the values in form elements should be retained after it is being posting and validated ? |