PHP: function/way that will automatically load another page?

AdamDuritz99

Diamond Member
Mar 26, 2000
3,233
0
71
Is there a function/way that after so much code has been processed it will automatically load a different page? Like a user clicked a link, but really didn't. I don't want to have to use html header refresh either.
Ex:
Assuming GoTo(); was a function that would automatically reload or transfer to another page.

<?php

//random code above

if(isset($auth)){

GoTo("http://www.someurl.com/somepage.php");

} else {

print('You have not logged in');

}

?>

peace
sean
 

AdamDuritz99

Diamond Member
Mar 26, 2000
3,233
0
71
Another bump. Maybe someone on the night shift can help.

p.s. Does any one know of a good php community that gets replies like AT but with programming topics?

peace
sean