Exercise: PHP and Web interactions
Emmanuel Benoist Home Page

Exercise: PHP and Web interactions

Select language

Write a form where the user writes his name and prefered language. Store this information in two session variables. Use this to greet him with a word of his language followed by his name (Salut Emmanuel, Hello Claude, Hallo Hansjoerg).
Solution
Test the solution and View the source

Shopping cart

Create a form for selecting a product (from a list of given goods) and a quantity. Insert the choosen product in a shoping cart. If this cart is not empty, then print the content of it (if an element is already in the cart, you simply add the two quantities).
Solution
Test the solution and View the source