I have a webpage (submit_score.php) where you can submit your test score and it draws a chart of the point distribution. Once you have inputted the score you press the button that then takes you to the page that shows the point distribution (point_chart.php).
In the 'point_chart.php' page I have the SQL-queries that actually add the scores to the database table that the ChartJS then shows on the page.
The problem is, once you are on the 'point_chart.php' and refresh the page, it also runs the SQL-queries again and adds the points to the database table again.
I am aware of PRG-pattern, but I haven't found anything useful online.
Any ideas?