From 446c9c784710f65e5a03d036e4fff164b57a1d29 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 24 Feb 2021 23:57:02 -0600 Subject: Update upload_structure_file.php --- sourcecodes/upload_structure_file.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sourcecodes/upload_structure_file.php') diff --git a/sourcecodes/upload_structure_file.php b/sourcecodes/upload_structure_file.php index f0c9fc7d..0b980b25 100644 --- a/sourcecodes/upload_structure_file.php +++ b/sourcecodes/upload_structure_file.php @@ -13,7 +13,7 @@ include("input_validate.php"); $searchID=""; $UploadValue="NO"; -$TextFile=$HTTP_POST_FILES["MyFile"]["name"]; +$TextFile=$_FILES["MyFile"]["name"]; /////////////Generate a random key///////////////////// @@ -43,9 +43,9 @@ $input_table_file="./data/".$keyval."input_table.txt"; $TextinFile=$dir.$sid."_orig.txt"; -if(isset($HTTP_POST_VARS["searchkey"])) +if(isset($_POST["searchkey"])) { - $searchID=$HTTP_POST_VARS["searchkey"]; + $searchID=$_POST["searchkey"]; } @@ -62,14 +62,14 @@ if($searchID=="") window.alert ('Sorry, error uploading $TextFile.')"; -- cgit 1.4.1