<?php
// stparam.php
// Help out stparam.html
// RJM Programming
// January, 2021

 $tdcnt=1;
 $findings="";
 if (isset($_POST['tacount' . $tdcnt])) {
   while (isset($_POST['tacount' . $tdcnt])) {
    $findings.='<input type=hidden id=dacount' . $tdcnt . ' value="' . str_replace("+"," ",urldecode($_POST['dacount' . $tdcnt])) . '"></input>';
    $findings.='<textarea style=display:none; id=tacount' . $tdcnt . '>' . str_replace('"','',str_replace(" ","+",urldecode($_POST['tacount' . $tdcnt]))) . '</textarea>';
    $tdcnt++;
   }
 }

 if (file_exists("stparam.html")) {
   if (str_replace("?","",('' . $_SERVER['QUERY_STRING'])) != '') {
   echo str_replace("</body>", $findings . "</body>", file_get_contents("HTTP://www.rjmprogramming.com.au/HTMLCSS/stparam.html?" . $_SERVER['QUERY_STRING']));
   } else { 
   echo str_replace("</body>", $findings . "</body>", file_get_contents("stparam.html"));
   }
 }
 exit;
?>