alert message inside echo php code example
Example 1: show alert in php
echo '<script language="javascript">alert("juas");</script>';
Example 2: alert js in php
javascript:alert('Email enviado com Sucesso!');
javascript:window.location='index.php';