Class Activity 10
- Due Oct 2, 2020 by 10am
- Points None
Note: There's nothing to submit to this class assignment, though you will submit homework related to it.
Overview
In order to move the data storage from the client side to the server side, we need to have some mechanism for getting data from the server to the client and saving data from the client on the server. For now, we'll use a simple API to do this. That is, we want to make a PHP page that we can make requests to, and based on the requested action, the PHP will create, retrieve, update, or delete data from the server-side database. We need to come up with what that API will look like.
Tasks
- make a list of all the data access actions (saving and loading) we need to perform in VidQuiz
- for each of those actions, what parameters do we need to carry the action out
- establish a scheme that we can use in HTML/PHP
- how will the client specify the action to the server?
- what will the name of the parameters be?
- what type of data will each parameter value be?
- implement that scheme in PHP
- add AJAX to VidQuiz to use the new APIs
The last two steps should be done in an iterative fashion, one action at a time, to ensure each is working as expected before moving on to the next.