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