So i'm trying to refresh my page 1 time after my form is submitted. Now the problem is that when i submit the page reloads infinite. How do i make it so it only reloads 1 time after echoing the 'hoi'?
This is btw just a test page where i was testing on
<?
if($_GET['options'])
{
echo 'hoi';
echo '<meta http-equiv="refresh" content="1">';
}
?>
<form id="myForm" method="get" >
<input type="radio" name="options[]" value="3" onclick="document.getElementById('myForm').submit();"/>
</form>
<meta http-equiv="refresh" content="0;URL=http://www.example.com" />
The above example would redirect immdetiately but if you changed the 0 for another number it would wait that many seconds. Hope this all makes sense, it should work just fine but I still think my first idea was the better one.