$file_ext = $list->get("file_1");
$file_ext_array = explode(".", $file_ext);
$file_ext_type = strtolower($file_ext_array[1]);
$allow_file_type = array("gif", "jpg", "jpeg", "png", "bmp");
$file_ext_array = explode(".", $file_ext);
$file_ext_type = strtolower($file_ext_array[1]);
$allow_file_type = array("gif", "jpg", "jpeg", "png", "bmp");
for ($k = 0; $k < sizeof($allow_file_type); $k++) {
if ($file_ext_type == $allow_file_type[$k]) {
$file_ext_check = "on";
}
}