====== Coursework 2: Server-Side Programming ====== **Formally issued on**: Wednesday 14th March, 2012. **Lecturer**: [[C.P.Jobling@Swansea.ac.uk|Dr Chris P. Jobling]]. **Due date**: Start of the final teaching session on Thursday 26th April, 2012. ===== The Exercise ===== * Write a PHP document to generate a web form (in valid HTML5) that collects your favourite films, including the title of the film, its director, and one or more of its stars, your rating (out of 5) and a mini review. This form must call one PHP script when the form is submitted and another to request a current list of favourited films. * Write a PHP script that collects the data from the form of Exercise 1 and writes it to a file. * Write a PHP script that produces the current results of the survey of Exercise 1. //Hint//: As you have not done any PHP yet, mock up the application in HTML first! ===== Submission Details ===== You should submit a copy of your PHP scripts packaged in a single zip file ''student_id.zip'' (Windows Compressed Folder) and sent to me via email. You may assume that I will test the scripts by installing the PHP scripts at server location ''/student_id/''. I would appreciate it if your zip file followed this convention. However, your scripts should use relative addressing and you should not assume anything about where your application will be installed. Avoid the use of absolute URIs in the ''action'' attribute in any forms and ''href'' attribute in any anchors. CSS styling and JavaScript is not required, but if provided, the files must be external and located in the same folder as the PHP files, or in suitably named subfolders (e.g. scripts, style, images, etc). Use relative addressing in the associated '''', '''' and ''