Forms Processing in PHP 2
If you've played with part 1 of this tutorial, you will have found that if you use the form to insert information into a database, and the user refreshes the screen, duplicate information is inserted into the database.

The solution presented here, takes the approach to separate the form input from the database update.

In the example we use session variables instead of table updates. When you implement the example as a solution, NO sessions are required, unless for other purposes.

Try the example.

Source code for the example.