header("location:video.php" ); doesnt seem to be working whats wrong?
this works on my pc but but when i uploaded it in my site.
This isnt the "headers already sent by" error. It wont go to video.php
even if i put echo "blah blah"; after header("location:video.php" );, "blah blah" will still show.
PHP Code:
if( isset( $_GET['mod'] ) && $_GET['mod'] == "login" )
{
if( isset( $_POST['username'] ) && isset( $_POST['password'] ) && loginGranted( $_POST['username'], $_POST['password'] ) )
{
session_destroy();
session_register( "sid_pass", "sid_user" );
$sid_user = $_POST['username'];
$sid_pass = md5( $_POST['password'] );
header("location:video.php" );
}
Last edited by ChancesAre; 05-11-2005 at 06:45 AM..
|