keyboard
06-08-2012, 11:16 PM
Is there any reason not to do this (if I also provide a manual button incase they have got javascript disabled)
<?php
echo '<script type="text/javascript"> window.location = "../..' . $lastPage . '"; </script>';
?>
instead of
<?php
header('location:../..' . $lastpage);
?>
Because I need to redirect based on a condition after some content has been loaded...
Thanks, Keyboard1333
<?php
echo '<script type="text/javascript"> window.location = "../..' . $lastPage . '"; </script>';
?>
instead of
<?php
header('location:../..' . $lastpage);
?>
Because I need to redirect based on a condition after some content has been loaded...
Thanks, Keyboard1333