Why is this not redirecting? I want it to redirect with a url variable but I can't even get it to go to aol.com...I hit upload and I get a blank page when I go back I see the file has uploaded so what I am doing that is not allowing for the header to redirect? Basically I want if successful redirect to editpage.php?show=$showit
$foldername = "shows/" . $_SESSION['username'] . "/" . $_SESSION['showit'] ;
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 10000000000))
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
}
else
{
header( "Location: http://www.lowsk.com/slideshow/login.html" );
//echo "Upload: " . $_FILES["file"]["name"] . " complete.<br />";
if (file_exists($foldername . "/" . $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
$foldername . "/" . $_FILES["file"]["name"]);
}
}
}
else
{
echo "Invalid file";
}