Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Multiple URL Redirect Time based Reply To: Multiple URL Redirect Time based

#203511
consultnew
Participant
<?php
$hour = (int)date(“G”);

if ($hour >= 6 && $hour <= 14)
{
?>
<script type=”text/javascript”>
{
window.location.href = “normal.php”;
};

</script>
<?php
}

else if ($hour >= 14 && $hour <= 22)
{
?>
<script type=”text/javascript”>
{
window.location.href = “vodafone.php”;
};

</script>
<?php
}
?>