#file=geisa_post_getfname
#on entry: $menu_opt=...Fnam=xxx&... (POST method)
#on exit: $filelen
ifs=$IFS;IFS="&";fnami=;for s in $menu_opt;do
l=`expr "$s" : 'Fnam=\(.*\)'`;[ "$l" ]&&fnami="$l"
done
[ "$fnami" = "^M" ]&&fnami=;
[ "$fnami" ]||
{
echo ""
echol "Erreur: Le fichier source n'est pas spécifié" "Error: The source filename was not specified"
echo ".
"
error=1
}
IFS=$ifs;read filelen
[ "$fnami" -a "$filelen" = "0" ]&&
{
echo ""
echol "Erreur: Le fichier source $fnami est inexistant ou vide" "The source file was not found or is empty"
echo ".
"
error=1
}