CIS Assignment:
Date and Time Select Fields Via PHP
Preliminary attempt (without self-assessment) due Tuesday 2 November
Final submission due Monday 8 November
Objectives
...be able to integrate PHP commands into HTML documents to produce web pages
...develop full familiarity with elements of HTML forms ...
...understand and appropriately use general programming structures such as variables, arrays, conditionals, and loops
Criteria
Assignment will be graded out of 10 points
- Appropriate use of arrays (2 points)
- Appropriate use of loops (2 points)
- Complete and correct reproduction of specified select fields (1 points)
- Self-assessment (5 points)
- Bonus: Appropriate use of conditionals and built-in PHP functions (5 points)
Directions
- Use arrays and foreach statements to create these form elements via PHP.
- To see a concise presentation of the HTML for these form elements, click here.
- Bonus: When you're done, modify your code to initially display the current date and time (rounded off to the nearest ten minutes) in the select fields when the page is loaded.
Self-assessment
Your self-assessment should include the following components:
- Assign yourself a grade (using the criteria listed above) and provide evidence for the grade you have given yourself.
- Briefly describe the pros and cons of using arrays to create these select fields rather than simply writing out the HTML.
- Assess your level of competence in relation to the objectives.
- Describe the value of this assignment.
- State any plans you have for further work needed to reach the objectives.
Submission
- Submit your files and your self-assessment to your WebX portfolio.