メールを検証し、既存のコードにフェードイン効果を追加するにはどうすればよいですか?
<?php
if ($_POST['submit']) {
if ($name != '' && $email != '') {
if (mail ($to, $subject, $body, $from)) {
echo '<div style="border: 1px solid #00EE00; padding: 10px;"><p>Your message has been sent to our Customer Care Team.</p></div>'; } else {
echo ' <div style="border: 1px solid #FF030D; padding: 10px;"><p>Something went wrong, go back and try again!</p></div> '; } }
else if ($_POST['submit'] ) {
echo '<div style="border: 1px solid #FF030D; padding: 10px;"> <p>You need to fill in all required fields!!</p></div>'; } }
?>