<?php
if (!empty($_SESSION['err'])): ?>
<tr>
<td width="220" class="content_l" > <font color = "ff0000">
<?php foreach ($_SESSION['err'] as $err): echo $err.'<br>'; ?> </td>
</tr>
<?php
endif;
unset($_SESSION['err'];
?>
继续收到此错误,无法看错。
答案 0 :(得分:0)
应该是这样的:
<?php
if (!empty($_SESSION['err'])):
?>
<tr>
<td width="220" class="content_l" > <font color = "ff0000">
<?php foreach ($_SESSION['err'] as $err){ echo $err.'<br>'; }?> </td>
</tr>
<?php
endif;
unset($_SESSION['err']);
?>