[SOLVED] Hey Guys! Im Backk Lol

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Hey Guys! Im Backk Lol

Post 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
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

isn't it something like

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

?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Code: Select all

<?php
$r = 'somepage.php';
header("Location: $r");
exit;
?>
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

[SOLVED]

Post by NewfieBilko »

[SOLVED]
Post Reply