Answer the question
In order to leave comments, you need to log in
How to display a notification after sending an email?
There is a code
$send = mail ($address,$sub,$mes,"Content-type: text/html; charset = UTF-8\r\nFrom:$address");
if ($send == 'true')
{echo "<div style='font-size:18px;'>Сообщение отправлено успешно.</div>";}
else {echo "<div style='font-size:18px;'>Ошибка, сообщение не отправлено!</div>";}
}
else
{
echo "<div style='font-size: 18px;text-align: center;margin: 15px;'>Заполнили все поля!!!</div>";
}
Answer the question
In order to leave comments, you need to log in
output in a hidden html block, you can even write a js variable in a script block, and then, after loading the page, use the text that came in response to output using java scrip
Your script is accessed by js via ajax, in response it receives a text. What is the problem? Or is the scheme different?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question