TO AVOID DUPLICATE VALUE INSERT IN CORE PHP ON REFRESH:: During the post value insertion in the database, after refresh duplicate value inserted in the table. To avoid this, we can redirects after insertion to the same page. It will destroy the post values.
code is::
header('Location: '.$_SERVER['PHP_SELF'].'?data=1);
die;