Tips Calculator is a tip calculator PHP page.
Submitted by: Ki Yin Kenny Lam
Time spent: 4 hours spent in total
The following required functionality is complete:
- User can enter a bill amount, choose a tip percentage, and submit the form to see the tip and total values.
- Tip percentage choices use a PHP loop to output three radio buttons.
- PHP code sets reasonable default values for the form.
- PHP code confirms the presence and correct format of submitted values.
- Page indicates any form errors which need to be fixed.
- Submitted form values are retained when errors or results are shown.
The following optional features are implemented:
- Add support for custom tip percentage
- Add support for splitting the tip and total
The following additional features are implemented:
- List anything else that you can get done to improve the functionality!
Here's a walkthrough of implemented user stories:
I have some experience with Javascript, HTML and CSS, but I have not tried to work on PHP. I found PHP to be more messy and hard to manipulate than Javascript, especially when I want to enclose one within another. Therefore, I have spent a lot of time on looking at the tutorials and do trial and errors on the project. To be honest, my code is not well organized, but I will try my best to polish it.