How can I delay the execution of a block of code in php?
if ($qry->execute($leads)) {
echo'<div class="note success">' .
$_POST["first_name"] . ', Your entry was successful!
</div>';
// Set up email params
This code displays a "Successful" message then emails the users. After displaying the the message, I want to redirect the user.
Is this possible in PHP? Do I need to use JavaScript?
Thanks!