Module 2 Overview


PHP

Our second module for this class went over PHP. PHP is a scripting language that can be used to create more interactive webpages. In the assignments, I learned how to set up PHP inside HTML code, create variables and arrays, use control flow, and setting up loops & functions. In class, we also practiced some examples of PHP with our own webpages. I found PHP Manual to work the best out of all of our assignments. It showed how to integrate PHP with HTML files to create more responsive webpages, with I talk about below. The PHP module helped provide the foundation of creating more dynamic webpages and is built on further in the MySQL module.



Learning Artifact


PHP Manual

Codecademy and w3schools were used again to introduce the basics of PHP. While helpful, they were still very basic. In the PHP Manual assignment, we actually created a responsive webpage. The tutorial involves adding a form in HTML that asks for the users name and age. After entering the information and submitting it, PHP script outputs a message in a new window. This assignment gives an example of how the post method is used to get and store a response from the user. While simple, it demonstrates how PHP is used with HTML to create things like log-in forms and search bars. Here is a picture of what that finished webpage looks like:




Here is a link to the PHP Manual page of our assignment portfolio with the working code.