Answers for "why is <script>alert("Hello");</script> is inserted in php file"

PHP
0

alert in php

// This is in the PHP file and sends a Javascript alert to the client
$message = "Something";
echo "<script type='text/javascript'>alert('$message');</script>";
Posted by: Guest on March-11-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

Code answers related to "why is <script>alert("Hello");</script> is inserted in php file"

Browse Popular Code Answers by Language