Project 2 – Make a Dynamic Web Page (PHP)

The web page you created in the previous course was static. We added a form to the page, but there was still no way to persist data or get input from an end user.

For this project, we will send the data to the server when the user submits the form.

You can still use Replit.com for this project. Just create a PHP Web Server project instead of an HTML, CSS, JS project.

Create a new file called create-note.php.

Add a PHP function called addNote to that file.

In that function, save the user’s form data to a file called note-store.json.

You will need a pretty good understanding of PHP (arrays, functions, loops, and objects) to complete this project.

If you get stuck, check out the solution. You can find it on this course’s page. It’s right below this project.

When you’re done, the user should be able to fill out the form, submit it, go back to the previous page, and see his note.