我正在尝试制作一个页面来验证用户,一旦他们得到验证,它应该会自动显示新内容。
我已经尝试过:
<?php if ($user[ 'verified']) echo '<META HTTP-EQUIV="Refresh" Content="0; URL='.$location.'">'; ?>
但问题在于,如果用户经过验证,则该站点会不断刷新。
<div class="notverified" <?php if ($user[ 'verified']) echo 'style="display:contents;"'; ?>> <span>You are verified (example)</span> </div>
我希望在用户在 db 中验证后自动显示新内容,或者一旦用户通过验证,网站会重新加载但只有一次。
慕尼黑5688855
皈依舞