This is a little website I created while I was waiting for the release of a game. It's not very complicated but it's just an example of the wide variety of tools I can develop with my skills.
The piece of code above creates an array with all the pages that users have created. Each page would be for a different countdown. It then reverses the array in order to list them chronologically. An array is then created for the link to each page. A for loop is then used to iterate through each page, grabbing the content between the "title" tag in order to specify what each page's countdown is actually about.
The image above shows the code for the actual form the user can use to create a countdown. I used multiple PHP for loops to create each option for the form as I didn't want to manually write the numbers for each possible date.
The code above is used to create a little section underneath the form to display the previously created countdowns.
The image above is part of the actual script that creates the countdowns. Each form field's data is acquired using POST as the method. While I would normally use a myriad of validation checks, I didn't really bother in this case because I just wanted to finish the website as fast as possible. Ideally, it would check to ensure "hour" isn't more than 24 or "minutes" isn't above 59 etc.
The image above depicts the finished product.