How to prevent duplicate record insertion after refreshing php page

From: Date: Wed, 19 May 2010 12:13:56 +0000
Subject: How to prevent duplicate record insertion after refreshing php page
Groups: php.general 
Request: Send a blank email to php-general+get-305321@lists.php.net to get a copy of this message
Hi, If I do refresh after submission of a form, records are getting stored multiple times. I have two pages. /submission-form/ and /thank-you/ I was trying header('Location: /thank-you/'); on submission-form page after successful validation and insertion into db. Still if I do refresh on thank-you page it adds one more record in database. How to prevent it without token? -- Devendra Jadhav देवेंद्र जाधव

« previous php.general (#305321) next »