CIS-363B- Week 5 Lab
This week's lab involved using HTML forms. HTML forms are a superb way to interact with the user of your website. The lab required us to build a website check out page that displayed items the user bought, the total and then gathered valuable information to complete the purchase. I used a table to show the items the user purchased seen below:
I put thumbnails within my table to show the user the item they were purchasing, the description, the cost of the item and the quantity. Then at the bottom of the table I tallied up the grand total.
At the bottom of the page is where my HTML form begins.
It is here that the form collects important user information like their name, address, shipping options, and payment information. The form has quite a bit of validation to ensure the user not only enters the required values but that they enter it correctly. I used place holders and tool tips to inform the user of the required format.
I also used drop-down lists for the country option and the credit card type values. I used radio buttons so the user can click either pickup or ship. Radio buttons are great because the user can only select one option, not both. I did this by creating a radio button group. The phone number and credit card values are required to be in a specific format and the tool tip will tell the user this as well.
Upon clicking submit, the user will get either validation error messages over the field with the error. Or if the data is valid, the user will be guided to another page that states "Thank you for your order!"
Tune in for more posts next week!
At the bottom of the page is where my HTML form begins.
It is here that the form collects important user information like their name, address, shipping options, and payment information. The form has quite a bit of validation to ensure the user not only enters the required values but that they enter it correctly. I used place holders and tool tips to inform the user of the required format.
I also used drop-down lists for the country option and the credit card type values. I used radio buttons so the user can click either pickup or ship. Radio buttons are great because the user can only select one option, not both. I did this by creating a radio button group. The phone number and credit card values are required to be in a specific format and the tool tip will tell the user this as well.
Upon clicking submit, the user will get either validation error messages over the field with the error. Or if the data is valid, the user will be guided to another page that states "Thank you for your order!"
Tune in for more posts next week!
Comments
Post a Comment