How can PHP redirects be effectively used after database updates to improve user experience?

After updating a database, it is important to redirect the user to a new page to improve their experience and prevent them from resubmitting the form accidentally. This can be done using PHP's header() function to send a redirect header to the browser.

// Perform database update
// Redirect user to a new page after update
header("Location: new_page.php");
exit();