Answer the question
In order to leave comments, you need to log in
Why doesn't alert work?
The page has the code:
echo "<script>alert(\"Сообщение отправлено!\");</script>";
Answer the question
In order to leave comments, you need to log in
This is how it should work:
echo "<script>alert('Сообщение отправлено!');</script>";
Try enabling the PHP interpreter.
Since any of these options work fine:
<?php
echo "<script>alert(\"Сообщение отправлено!\");</script>";
echo "<script>alert('Сообщение отправлено!');</script>";
echo "<script>alert(\"Сообщение отправлено!\")</script>";
?>
<?='<script>alert("Сообщение отправлено!");</script>';?>
<%='<script>alert("Сообщение отправлено!");</script>';%>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question