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
Related Pages
Contact
Prof. Dr. Emmanuel Benoist
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch
Berner Fachhochschule - TI
Quellgasse 21
CH-2501 Biel/Bienne
Switzerland
Mail: emmanuel.benoist (at) bfh.ch
Social Networks
Follow
me
on
Linkedin, Scholar
& Research gate