解析错误:语法错误,意外'}',期待','或';'在/

时间:2014-05-09 14:02:44

标签: php

任何人都可以帮我解析错误我不断使用此代码加上div标签也不起作用所以也许你可以提前给我一个解释。

<?php
        if (isset($errors) === false){
            echo 'Click to update and edit your profile.'; 
        }else if (empty($errors)){
             echo 'Your profile has been updated.'
        }else{
                echo '<ul><li>',implode('</li></li>',$errors), </li</ul>';
         ?>
        </div>
        <form action"" method="post">
             <div>
                  <label for="email">Email:</label>
                  <input type="text" name="email" id="email" value="<?php echo $user_info['email']; ?>" />
             </div>
             <div>

1 个答案:

答案 0 :(得分:1)

<?php
        if (isset($errors) === false)
        {
            echo 'Click to update and edit your profile.'; 
        }
        elseif (empty($errors)){
             echo 'Your profile has been updated.';
        }else{
                echo '<ul><li>'.implode('</li></li>',$errors).' </li</ul>';
      }
         ?>
        </div>
        <form action"" method="post">
             <div>
                  <label for="email">Email:</label>
                  <input type="text" name="email" id="email" value="<?php echo $user_info['email']; ?>" />
             </div>
             <div>