$types = $_GET["types"];


if ($types=="Pictures") {$allowed_file_ext = array("gif", "png", "jpeg", "jpg");}
if ($types=="Ringtones") {$allowed_file_ext = array("mid", "amr", "wav", "mp3");}
if ($types=="Java Games") {$allowed_file_ext = array("jad", "jar");}
if ($types=="Funny Pictures"){$allowed_file_ext = array("gif", "png", "jpeg", "jpg");}
if ($types=="Mobile Videos") {$allowed_file_ext = array("3gp","mp4");}
if ($types=="Symbian Games") {$allowed_file_ext = array("sis", "sisx");}
if ($types=="Sound Effects"){$allowed_file_ext = array("mid","amr", "wav", "mp3");}
if ($types=="Adult pictures"){$allowed_file_ext = array("gif", "png", "jpeg", "jpg");}
if ($types=="Mp3 Music"){$allowed_file_ext = array("mp3");}
if ($types=="Mobile Softwares") {$allowed_file_ext = array("jad", 
rhs rhs: if ($types=="Mobile Softwares") {$allowed_file_ext = array("jad", "jar", "sis","sisx");}
if ($types=="Anime Wallpapers"){$allowed_file_ext= array("gif", "png", "jpeg", "jpg");}
if ($types=="Pic"){$allowed_file_ext= array("gif", "png", "jpeg", "jpg");}

$x = explode(".",$_FILES["file_upload"]["name"]);
$file_ext = $x[count($x)-1];
if(!in_array($file_ext,$allowed_file_ext))
{

echo $file_ext;
echo "Wrong file type<br/>";

exit;
}

rhs rhs is typing a message.
rhs rhs: //// the add upload codes