Should be off!
"; //}; //if ($needconntblrefresh){ if (1){ // // We now set up new default data from the previous form. // We do present a filled in table but as we said we first fill in the data! //================================================================= // Loop on fields for ($i=1; $i<=$ES_SD['datanum']; $i++) { // If it a section title we do ignore updates... if ($ES_SD['datarequired'][$i]==2){continue;} // If it an hidden field we do ignore it too... else if ($ES_SD['datarequired'][$i]==-1){continue;} else { // IF it is an enum type field. DOUBLE CHECK dataHTMLtype and dataISANUM if (($ES_SD['dataHTMLtype'][$i]=="select") && ($ES_SD['dataISENUM'][$i][0]>0)){ // We save first the value in datavalue $ES_SD['datavalue'][$i]=$_POST[$ES_SD['dataDB'][$i]]; // We swap the selected item with order zero so it appear first // What about having an $ES_SD[dataISENUMselected] term ? for ($j=1; $j<=$ES_SD['dataISENUM'][$i][0]; $j++) { if ($ES_SD['dataENUMname'][$i][$j]==$_POST[$ES_SD['dataDB'][$i]]){ $temp=$ES_SD['dataENUMname'][$i][1]; $ES_SD['dataENUMname'][$i][1]=$ES_SD['dataENUMname'][$i][$j]; $ES_SD['dataENUMname'][$i][$j]=$temp; }; }; // IF it is of data type