Back to DFS's Workshop Page
Back to Agenda Page
Back to the Project Page
Deleting a Record from a File
For this problem, you are to cannibalize any available code and write a trio of scripts which will do the following.
The First PHP Script: deleteaplayer1.php
- Ask the user to select the player data that is to be deleted. Use radio buttons in a table which displays the data for all of the players.
- Using the "Delete It!" button, send the number of the selection to a PHP script called editaplayer2.php.
The Second PHP Script: deleteaplayer2.php
- Read the data in from the file, deleting the record that has been selected.
- Write the data back to the file.
- Read the data back in from the file and display it in a table.
Check out this solution.
© 2006 DFStermole
Created 20 Nov 06
Last Modified 26 Nov 06