Once the customer has looked around the shop and selected some items, they are going to want to place an order. To this end we must provide a page that allows them to enter their payment details, and then send the order to the merchant.
Ideally, the order would be inserted into a database which the merchant would periodically check. However, this is beyond the scope of this document, so we will be using a reasonably simple Perl script.
The page that allows entry of payment details will open in a new window when the customer clicks the "Order" button. It will display the list of items ordered, and will include form fields for name, address, payment method and credit card details. The list of items ordered will also be stored in hidden fields to be sent to the merchant.
The code that generates this page will be added to the index.html file.