Skip to content

Commit

Permalink
move hidden input
Browse files Browse the repository at this point in the history
  • Loading branch information
TurboPT committed Mar 13, 2018
1 parent 1d5e2e2 commit 2c915bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions GLTrialBalance.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,18 +403,18 @@
} else {

include('includes/header.php');
echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">
<div>
<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />
<input type="hidden" name="FromPeriod" value="' . $_POST['FromPeriod'] . '" />
<input type="hidden" name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />';

if ($_POST['Period'] != '') {
$_POST['FromPeriod'] = ReportPeriod($_POST['Period'], 'From');
$_POST['ToPeriod'] = ReportPeriod($_POST['Period'], 'To');
}

echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">
<div>
<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />
<input type="hidden" name="FromPeriod" value="' . $_POST['FromPeriod'] . '" />
<input type="hidden" name="ToPeriod" value="' . $_POST['ToPeriod'] . '" />
<input type="hidden" name="Period" value="' . $_POST['Period'] . '" />';
echo '<input type="hidden" name="Period" value="' . $_POST['Period'] . '" />';

$NumberOfMonths = $_POST['ToPeriod'] - $_POST['FromPeriod'] + 1;

Expand Down

0 comments on commit 2c915bd

Please sign in to comment.