if ( ( ($_FILES["file"]["type"] == "image/gif") ||
($_FILES["file"]["type"] == "image/jpeg") ||
($_FILES["file"]["type"] == "image/pjpeg") ) &&
($_FILES["file"]["size"] < 20000))
{
header ("Location: index.html");
}
i am using the above code to redirect the page to index.html if user has uploaded any image. but it is not working. the page is not getting redirected. can anybody help me?
Thanks in advance
Does the Redirect work, without the if-condition? Maybe it’s not the if-condition which is not working, but some mistake within your redirect-command. This sometimes is kinda weird, with
header('Location: ...');