<?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'];
?>
不断收到此错误,看不到任何错误。
应该是这样的:
<?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']);
?>