alert in php
snippet in php

alert in php

user4839

echo '<script>alert("Message")</script>';

how to display alert in php

user5581

<?php 
// PHP program to pop an alert 
// message box on the screen 
  
// Display the alert box  
echo '<script>alert("Welcome to Geeks for Geeks")</script>'; 
  
?> 

alert in php

user2436

// This is in the PHP file and sends a Javascript alert to the client
$message = "Something";
echo "<script type='text/javascript'>alert('$message');</script>";

alert js in php

user6198

javascript:alert('Email enviado com Sucesso!');
javascript:window.location='index.php';