Codice PHP:
if($_FILES["tuo_file"]["type"] == "image/gif" || $_FILES["tuo_file"]["type"] == "image/jpeg" || $_FILES["tuo_file"]["type"] == "image/png")
{
|
|
|
// ISTRUZIONI
|
|
|
} else {
echo "I file ammessi sono .jpg .png .gif";
}
![]()
Codice PHP:
if($_FILES["tuo_file"]["type"] == "image/gif" || $_FILES["tuo_file"]["type"] == "image/jpeg" || $_FILES["tuo_file"]["type"] == "image/png")
{
|
|
|
// ISTRUZIONI
|
|
|
} else {
echo "I file ammessi sono .jpg .png .gif";
}
![]()
Favorites:
Short links, are better!