javascript – how to go to the next page after clicking ok button of sweetalert in php?-ThrowExceptions

Exception or error:
echo '<script type="text/javascript">';
  echo 'setTimeout(function () { swal("Thanks", "Thank you for being Artesian", "success");';
  echo '}, 1000);</script>';

header('location:login.php');
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *