Alert php echo

David Morales Vega pro asked 6 years ago

Good morning, how can I print (echo) an alert with php? Thank you

Bartłomiej Malanowski staff pro premium answered 6 years ago

Hello there!
I'm not sure if I understand, but are you looking for something like this?


<?php

echo <<< Alert
<script>
    $(function () {
        toastr["info"]("I was launched via jQuery!")
    });
</script>
Alert;

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No