echo alert code example
Example 1: show alert in php
echo '<script language="javascript">alert("juas");</script>';
Example 2: php echo alert js
echo '<script type="text/javascript">alert("Data has been submitted to ' . $to . '");</script>';
echo '<script language="javascript">alert("juas");</script>';
echo '<script type="text/javascript">alert("Data has been submitted to ' . $to . '");</script>';