move alert to echo.php