Answers for "add js alert inside php"

PHP
13

alert in php

echo '<script>alert("Message")</script>';
Posted by: Guest on August-06-2020
1

allert in php

// This is in the PHP file and sends a Javascript alert to the client
$message = "wrong answer";
echo "<script type='text/javascript'>alert('$message');</script>";
Posted by: Guest on October-15-2020

Browse Popular Code Answers by Language