I have a form in which user input some details and then click a save button to save the data on database. Now after click save if I refresh the page browser ask for resend. If we resend it then duplicate entry available in database. My database insert process is on same page. Can it possible to prevent resend after completing process on single page?
Thank You in advance
you can redirect users after submitting and performing
insertusingheader("Location: somepage.php")you can (an i think should) use unique constraint in the db (e.g. for Postgres:
CONSTRAINT c_name UNIQUE (field_name))