ilikephp Posted June 21, 2010 Share Posted June 21, 2010 Hi, I have a php form; When the user clicks on the submit button the form will be submitted, BUT if he press the back button, all the info in the field will be redisplayed :S How can they be cleared? Thank you, Link to comment https://forums.phpfreaks.com/topic/205465-clear-field-on-submit/ Share on other sites More sharing options...
haku Posted June 21, 2010 Share Posted June 21, 2010 It depends on the browser. Some clear it, some don't. You can use javascript to clear the data on submit. Link to comment https://forums.phpfreaks.com/topic/205465-clear-field-on-submit/#findComment-1075307 Share on other sites More sharing options...
Ruzzas Posted June 22, 2010 Share Posted June 22, 2010 Using a onload ajax or I believe theres an Javascript one too, Just reset the forms. Google some ways to this. Link to comment https://forums.phpfreaks.com/topic/205465-clear-field-on-submit/#findComment-1075420 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.