检查客户端的表单数据并检查错误

时间:2013-04-11 04:23:45

标签: php

<?php
$Page = new PaginationDisplayInlineBottomAndTopDivs($number, $box, $errors, $go);
   if(form != null) {
    echo "didntfail";
} if (form != 3) {
    echo "failedpasswordsdidntmatch"
} if (form != 4) {
    echo "failedbutdidntgetpasswordrightwithusername";
} if (form != 6) {
    $Display->new FormErrorInputRedBoxShowDisplay($x, $a, $h, $g);
    $inputs = $Page->$Display->setFormInlineWithBox();
}

?>

我在第5行遇到错误。我很困惑并且对Php很新。

1 个答案:

答案 0 :(得分:2)

$Page = new PaginationDisplayInlineBottomAndTopDivs($number, $box, $errors, $go);
   if(form != null) {
    echo "didntfail";
} if (form != 3) {
    echo "failedpasswordsdidntmatch";
} if (form != 4) {
    echo "failedbutdidntgetpasswordrightwithusername";
} if (form != 6) {
    $Display->new FormErrorInputRedBoxShowDisplay($x, $a, $h, $g);
    $inputs = $Page->$Display->setFormInlineWithBox();
}

你错过了';'在行