Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to store numeric form values and retieve the total sum of them. Reply To: How to store numeric form values and retieve the total sum of them.

#282180
Beverleyh
Participant

You can use PHP’s file_put_contents() to save the entered form values into a text file. Then you can retrieve the content of the text file and display them on the page with file_get_contents() and echo()

Here’s a simple demo that uses the same logic except it’s updating a stylesheet http://fofwebdesign.co.uk/template/_testing/test/save-file/index.php