ibuprofen Posted September 9, 2008 Share Posted September 9, 2008 Hi all, this is my first post. Glad to be here and I'm looking forward to contributing any way I can. Here's my situation: 1) A user enters info in an HTML form and they submit. 2) A preview page displays the entered values with the option to submit or edit. 3) If they need to edit, the original form loads with their original info retained, no problem. However, I cannot figure out how to clear the form should they want to start over. The regular HTML reset-form doesn't work nor does a Javascript reset-form. The values PHP inserts are overriding everything. Any ideas? Thomas Link to comment https://forums.phpfreaks.com/topic/123451-clearing-forms/ Share on other sites More sharing options...
revraz Posted September 9, 2008 Share Posted September 9, 2008 Have the value = a variable, and if reset is pressed, have those variables = "", else have them = the $_POST values. Link to comment https://forums.phpfreaks.com/topic/123451-clearing-forms/#findComment-637594 Share on other sites More sharing options...
Minase Posted September 9, 2008 Share Posted September 9, 2008 a piece of code will be usefull Link to comment https://forums.phpfreaks.com/topic/123451-clearing-forms/#findComment-637596 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.