0

我到处找,但找不到类似的东西。

> I need this Slide toggle function  to work for various hidden divs
> (that contain images and text) that belong to each button,if it's
> possible the hidden divs slide from the right or even from bottom to
> up.Also if it's possible to add hoover on buttons to let the user know that
they are buttons to click on them, 

如果需要更多解释,请告诉我。我将不胜感激!

从右侧滑动切换 - Js fiddle

想法解释在这里:

在此处输入图像描述

4

1 回答 1

1

$name如果您希望所有字段都是强制性的,如果其中一个或$email为空,则应该抛出错误;所以你使用 OR。另外,如果反垃圾邮件不是4,就抛出一个错误,你不必检查,$_POST['submit']因为你已经检查过了。

  if ($_POST['submit']) {
        if ($name != '' OR $email != '') {
                if ($human == '4') {                 
                        if (mail ($to, $subject, $body, $from)) { 
                                echo '<p>Your message has been sent!</p>';
                        } else { 
                                echo '<p>Something went wrong, go back and try again!</p>'; 
                        }
                } else {
                        echo '<p>You answered the anti-spam question incorrectly!</p>';
                }
        } else {
            echo '<p>You need to fill in all required fields!!</p>';
        }
}
于 2013-10-08T23:20:48.473 回答