Page 1 of 1

Hey Guys! Im Backk Lol

Posted: Thu Aug 12, 2004 7:33 am
by NewfieBilko
Ok.. with just a simple question.. I have a buddy who needs some syntax. I'vebeen looking through php.net but cannot find the right one.

Say you have a page that has logic, checks for errors, then you want to Re-Direct from the current .php to a new load of a new .php.


So my friend has(login.php):

(error checking)
(if everything is ok)

then include_once(App.php)

Instead of including the file so its just there with the old Login.php int he address bar, he needs a RE-Direct So to speak, so that once it finishs the error checking it will Load up the next PHP file.

THanks Ahead of time, I love you all and this site lol

Posted: Thu Aug 12, 2004 7:39 am
by NewfieBilko
isn't it something like

header redirect(http://blah.php);

?

Posted: Thu Aug 12, 2004 7:40 am
by hawleyjr

Code: Select all

<?php
$r = 'somepage.php';
header("Location: $r");
exit;
?>

[SOLVED]

Posted: Thu Aug 12, 2004 9:23 am
by NewfieBilko
[SOLVED]