Call Processing Resources : LATAs |
|
|
ENDHTML
# if the screens file exists then we have already been here once and saved valid data, read this data in
if (!$answer) {
if (-e $datafile){
readData;
$formprocessed=1;
}else{$formcomplete=0;}
}
# process passed parameters
foreach $paramname ($query->param) {
# $paramcount++;
$paramvalue=$query->param($paramname);
$$paramname=$paramvalue;
$$paramname =~ s/\s+/_/g;
# place the values in the appropriate array location
if ($paramname =~ /row(\d+)col(\d+)/) { # row(i) and column(j) as read from webpage
$match1="$1";
$match2="$2";
$write_data[$1][$2]="$$paramname";
if ($match2==0){
if ($$paramname=~/[0-9]/){ # validate name
push @fail, $match1;
}
}
if ($$paramname=~/\D/){
$formcomplete=0;
$error="Lata value must be numeric";
}
}
# print "$paramname, $$paramname, $paramvalue, $$paramvalue "; if (($paramname eq "answer") && ($answer eq "finish")) { $finished=1; } } # trunkate list where Profile names are undefined $len=@fail; @write_data = splice (@write_data, $fail[0], $len); ##################################################################### # if the finish button has been clicked # ##################################################################### ##################################################################### # when entering this page from the main DBQ the answer will be null # ##################################################################### if (($finished) && ($formcomplete)) { writeData; print " | |