Hi,
I have a file upload for which I have done the below validation it but it throws a error :
Code:
if ((($_FILES["name"]["type"] == "image/gif") || ($_FILES["name"]["type"] == "image/jpeg") || ($_FILES["name"]["type"] == "image/pjpeg")) && ($_FILES["name"]["size"] < 20000))
{
but it gives 3 error as :

Notice: Undefined index: name in C:\wamp\www\w3schools\welcome.php on line 40

Notice: Undefined index: name in C:\wamp\www\w3schools\welcome.php on line 40

Notice: Undefined index: name in C:\wamp\www\w3schools\welcome.php on line 40
Regards,
Sourabh.