Sessions

Sample Solution

Here is the check.php5 and welcome.php5 files authored by Sebastian Löwe and Thomas Kappel. The files have been renamed with their last names.

Due Date

The assignment is due no later than 23:59:59 on Wednesday, December 20th. Then enjoy the holidays! Please see the What to Submit section for more information.

Lab Partners

Everyone is required to work with one lab partner on this assignment. Ideally, this should be the same person whom you plan to work with on the course project. Submit just one solution with both of your names on it.

Introduction

For this week's assignment, you are going to build a very simple website for the Deutsche Bahn. When a customer first goes to welcome.php5, the welcome.php5 page will generate this page. Now, suppose the customer's name is Angela and that Angela wants to travel 200 km using a Bahncard 50. After Angela enters this information and presses the Calculate Cost button, Angela will be taken to the check.php5 page that generates this information.

For the purposes of this assignment, assume that the Deutsche Bahn charges 20 cents per kilometer traveled. A Bahncard 25 reduces this amount by 25% and a Bahncard 50 reduces this amount by 50%.

Objectives

welcome.php5 - 5 points

check.php5 - 5 points

logout.php5 Notes

logout.html Notes

What to Submit

E-mail the welcome.php5 and check.php5 files to Aron Schneider at wir01iyf@studserv.uni-leipzig.de in one message with the following subject line: session Name1 Matrikelnnummer, Name2 Matrikelnnummer. Replace Name1 with your name, Name2 with your partner's name and Matrikelnnummer with the relevant student identification number. You may assume that Aron already has the proper logout.php5 and logout.html files on his computer.

Valid XHTML 1.0!