about summary refs log tree commit diff
diff options
context:
space:
mode:
authorziejd22021-02-24 23:55:43 -0600
committerGitHub2021-02-24 23:55:43 -0600
commite196b0a7cbbec60f2ce2ce361adc7eea8fdd9aed (patch)
tree96a01cfad4f0ee5ccc36494000044b652d5459d2
parentac0f1ac1c9fd14defd22c4c61dabbd6b0f12363d (diff)
downloadBNW-e196b0a7cbbec60f2ce2ce361adc7eea8fdd9aed.tar.gz
Update test_set_predictions.php
-rw-r--r--sourcecodes/test_set_predictions.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/sourcecodes/test_set_predictions.php b/sourcecodes/test_set_predictions.php
index 66400a66..076188b4 100644
--- a/sourcecodes/test_set_predictions.php
+++ b/sourcecodes/test_set_predictions.php
@@ -15,27 +15,27 @@ if($_POST["My_key"]!="")
   $keyval=valid_keyval($_POST["My_key"]);
 $searchID="";
 $UploadValue="NO";
-$TextFile=$HTTP_POST_FILES["MyFile"]["name"];
+$TextFile=$_FILES["MyFile"]["name"];
 //$TextinFile="./data/".$keyval."ts_upload.txt";
 $TextinFile="/tmp/bnw/".$keyval."ts_upload.txt";
 ?>
 </header>
 
 <?php
-if(isset($HTTP_POST_VARS["searchkey"]))
+if(isset($_POST["searchkey"]))
   {
-    $searchID=$HTTP_POST_VARS["searchkey"];
+    $searchID=$_POST["searchkey"];
 
   }
 
-if(isset($HTTP_POST_VARS["MyUpload"]))
+if(isset($_POST["MyUpload"]))
   {
-    $UploadValue=$HTTP_POST_VARS["MyUpload"];
+    $UploadValue=$_POST["MyUpload"];
     if ($UploadValue=="YES")
       {
         if($TextFile!="")
 	  {
-            $sta=move_uploaded_file($HTTP_POST_FILES['MyFile']['tmp_name'],$TextinFile);
+            $sta=move_uploaded_file($_FILES['MyFile']['tmp_name'],$TextinFile);
             if(!$sta)
 	      {
                  echo "<script type='text/javascript'> window.alert ('Sorry, error uploading $TextFile.')</script>\