shaymiller
Regular Member
- Dec 3, 2016
- 456
- 45
I have a simple search form to show results on next page using html/php
On on the results.php page, I used POST to get the values of the form. everything works just fine. The issue is when I can hit back and submit that form again, few times. I notices my MYSQL database rows are decreasing. I think this could be result of my submitting an form and hitting back.
is this correct? whats the solution?
results.php
<form role="form" method="post" action="results.php" name="report">
On on the results.php page, I used POST to get the values of the form. everything works just fine. The issue is when I can hit back and submit that form again, few times. I notices my MYSQL database rows are decreasing. I think this could be result of my submitting an form and hitting back.
is this correct? whats the solution?
results.php
$ExpenseItem=$_POST['ExpenseItem'];
$rtype=$_POST['requesttype'];