As the title says im posting some form data to another php file that processes it. I then want to return to the orig. form to start over but the same data is still in the form. Whats the best way to go about making the form fresh…
Thanks,
Darren.
As the title says im posting some form data to another php file that processes it. I then want to return to the orig. form to start over but the same data is still in the form. Whats the best way to go about making the form fresh…
Thanks,
Darren.
i use the header function to return. Maybe it is fire fox auto compelting it then… is there a way to overcome this without diabling it in the browser?
Thanks guys, Cerium that worked a treat
Yes. Dont push the back button with the header; have your page handle the data and reprint the form instead. (or just use the same page, and handle the data input before outputting the form again)
I think what you’re probably running into is your browser AutoComplete’ing the form for you…unless you specifically designed the form to echo out existing values into the fields.
Can you explain a bit more? How exactly do you return to the original form?
…Or you can do it the easy way:
<form autocomplete=“off”>
</form>
Yes this is what I would do. You could also use javascript to clear out the form data when the page loads, but just reprinting the form is more practical.