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