php show alert message code example
Example 1: show alert in php
echo '<script language="javascript">alert("juas");</script>';
Example 2: 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>";