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
[SOLVED] Hey Guys! Im Backk Lol
Moderator: General Moderators
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
Code: Select all
<?php
$r = 'somepage.php';
header("Location: $r");
exit;
?>- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
[SOLVED]
[SOLVED]