mercredi 10 janvier 2018

Make a modal pop up when an if-statement is satisfied

I want a modal popup after an if-statement is satisfied. The following is a sample of the code:

<form action="" method="post">
<button type="submit" name="btn">Test</button>
</form>

<?php
 if (isset($_POST['btn'])) {
//then trigger the modal pop-up
}
?>

Aucun commentaire:

Enregistrer un commentaire