I'm trying to make a page to verify users and once they get verified it should automatically display the new content.
I've already tried with:
<?php if ($user[ 'verified']) echo '<META HTTP-EQUIV="Refresh" Content="0; URL='.$location.'">'; ?>
But the issue with this is that if the user is verified the site keeps constantly refreshing.
<div class="notverified" <?php if ($user[ 'verified']) echo 'style="display:contents;"'; ?>>
<span>You are verified (example)</span>
</div>
I expect that automatically appears the new content once the user is verified in db OR that once the user is verified, the site reloads but only one time.