COAP:COAP-2100/week7: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 51: Line 51:
; Tips
; Tips
* Validate your HTML code
* Validate your HTML code
* Use the server log files for finding PHP errors.
* Use the server log files for finding PHP errors or keep the following line at the start of your PHP code:
* At the beginning of your PHP code (not the HTML), you also can insert the following line:
  error_reporting(E_ALL);
  error_reporting(E_ALL);



Revision as of 20:04, 20 February 2011

Week 7 COAP 2100

Topics Covered

  • Web server architectures
  • Running a webserver on your own PC
  • HTML5 for information ...
  • HTML forms tutorial (continued)
  • The concept of server-side scripting and web applications

Teaching materials

Classroom activities

Monday

What do we mean by the Internet (part II - web application architectures)
Using a web server
Processing forms with PHP (a taster)

Wednesday

Topics (TBA in detail)

  • XML
  • SVG
  • Document formats

Homework 7

Task

Create a PHP program that can process a simple quiz made with radio buttons. In addition, it should include 1-2 text input fields that ask for a name.

  • You can reuse elements from the JavaScript (hw 6) exercise. You also could relate the topic of the quiz to the term project.
  • You may use questionnaire items from other sources, but do not plagiarize. If you reuse assets from another source, cite the source. Plagiarism is simply not accepted and will be sanctioned.

Note: CS students familiar with HTML forms and PHP can use other HTML forms but be warned that, for example, processing checkboxes is more difficult.

Tips
  • Validate your HTML code
  • Use the server log files for finding PHP errors or keep the following line at the start of your PHP code:
error_reporting(E_ALL);
Evaluation criteria
  • Ergonomics and content (does the quiz "make sense" and is it interesting)
  • User experience (does it look good)
  • HTML and CSS code (is it valid)
  • Style and presentation
  • PHP (is your code running, does it compute ok)
Due
  • Before Wednesday week 8 class
Submission
  • Submit the files (*.html, *.php and if needed *.css, pictures, etc.) to the world classroom