c_pattle Posted September 25, 2010 Share Posted September 25, 2010 I was wondering if anyone knows a way where you can submit a form but content of the input fields will not be cleared? The reason why I want to achieve this effect is because I have a form and I want to user to be able to preview the results before properly submitting the form. Therefore I will have two submit buttons, one to preview and one to submit. Thanks for any help. Link to comment https://forums.phpfreaks.com/topic/214346-dont-clear-inputs-on-submit/ Share on other sites More sharing options...
litebearer Posted September 25, 2010 Share Posted September 25, 2010 sledge-hammer approach... 1st processing page is in effect an 'editpage' - it is almost an exact duplicate of the original form page however the POST variables are used as the values of the form fields Link to comment https://forums.phpfreaks.com/topic/214346-dont-clear-inputs-on-submit/#findComment-1115442 Share on other sites More sharing options...
c_pattle Posted September 25, 2010 Author Share Posted September 25, 2010 Thanks, yeah that would work. I may use AJAX though to create a better effect, I guess if I did this I'd just use JavaScript to pull the text from the input fields? Link to comment https://forums.phpfreaks.com/topic/214346-dont-clear-inputs-on-submit/#findComment-1115444 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.