How can you redirect to a specific page after deleting a record in PHP?

After deleting a record in PHP, you can redirect to a specific page by using the header() function to send a raw HTTP header to the browser. You can set the "Location" header to the URL of the page you want to redirect to after deleting the record.

// Delete record from database

// Redirect to specific page after deletion
header("Location: specific_page.php");
exit();