How to use a Sweet alert in PHP

How  Can  i  Use  Sweet Alert in php?

 

Bronze Asked on January 12, 2018 in PHP.
Add Comment
1 Answer(s)

Example 1 :


<?php
echo sweetAlert("Atenção!", "As senhas digitadas não conferem.", "warning");
?>

Example 2 :

<?php

echo '<script type="text/javascript">';

echo 'setTimeout(function () { swal("WOW!","Message!","success");';

echo '}, 1000);</script>';

?>


Starter Answered on January 12, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.