include("header_new.inc"); include("header_batchsearch.inc"); include("runtime_check.php"); include("input_validate.php"); //$searchID=""; $searchID="YES"; $UploadValue="NO"; $TextFile=$_FILES["MyFile"]["name"]; /////////////Reuse the key established by the calling page///////////////////// // Unlike bn_file_load_gom.php (a fresh upload entry point that mints a new // random key), this page is only reached via a redirect from // modify_structure_learning.php with an existing My_key in the query string, // so $keyval is read from $_GET here instead of being generated. $keyval=valid_keyval($_GET["My_key"]); $sid=$keyval."continuous_input"; //$dir="./data/"; $dir="/tmp/bnw/"; $input_table_file="./data/".$keyval."input_table.txt"; $TextinFile=$dir.$sid."_orig.txt"; if(isset($_POST["searchkey"])) { $searchID=$_POST["searchkey"]; } if($searchID=="") { ?>
window.alert ('Sorry, error uploading $TextFile.')"; flush(); exit(); } else { $searchID=file_get_contents("$TextinFile"); //unlink($TextinFile); } } else { echo ""; } } } ?>