Answers for "alert php"

PHP
13

alert in php

echo '<script>alert("Message")</script>';
Posted by: Guest on August-06-2020
0

alert in php

// This is in the PHP file and sends a Javascript alert to the client
$message = "Something";
echo "<script type='text/javascript'>alert('$message');</script>";
Posted by: Guest on March-11-2020
1

alert a php variable

echo '<script type="text/javascript">alert("'.$error.'");</script>';
Posted by: Guest on August-12-2020
1

allert in php

// This is in the PHP file and sends a Javascript alert to the client
$message = "wrong answer";
echo "<script type='text/javascript'>alert('$message');</script>";
Posted by: Guest on October-15-2020
1

alerta con php

echo '<script language="javascript">alert("juas");</script>';
Posted by: Guest on April-29-2020
0

php pop up message

Copy Code<?php
function  createConfirmationmbox(){
    echo '<script type="text/javascript"> ';
    echo 'var inputname = prompt("Please enter your name", "");';
    echo 'alert(inputname);';
    echo '</script>';
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Prompt Box by PHP</title>
<?php
    createConfirmationmbox();
?>
</head>
<body>
</body>
</html>
Posted by: Guest on March-23-2020

Browse Popular Code Answers by Language