alert using php messahge code example Example: alert in php echo '<script>alert("Message")</script>';