I know the question has been asked over and over, but I cannot figure out what am I doing wrong:
<html>
<head>
</head>
<body>
<?php
echo "<script type='text/javascript'>alert('message successfully sent');</script>";
?>
</body>
</html>
I know the question has been asked over and over, but I cannot figure out what am I doing wrong:
<html>
<head>
</head>
<body>
<?php
echo "<script type='text/javascript'>alert('message successfully sent');</script>";
?>
</body>
</html>
try this:
echo "<script>alert('message successfully sent');</script>";
or
echo "<script type='text/javascript'>alert('message successfully sent');</script>";
Both works in my case.