لمحترفي الويبPHP - معمو — الصفحة ٣٧

37 إدارة جلسة العمل http://localhost/advancedphp/chapter02/session_cart_checkout.php?checkout-Check Out! Micro OM File Edit View Favonles Tools Help Back Search Favorites Media Address http://localhost/advancedphp/chapter02/session_cart_checkout.php?checkout=Check+Out%21 Links Customize Links Free Hotmal 1 Windows 443) Windows Media →→ Checkout Thank you for shopping with us maamo, your order is below. Item ID: 001 Description: Tooth Paste Qty: 2 Item ID: 002 Description: Facial Tissue Qty: 0 Item ID: 003 Description: Cotton Swabs Qty: 0 Item ID: 004 Description: Shampoo Qty: 1 Item ID: 005 Description: Conditioner Qty: 0 Item ID: 006 Description: Deodorant Qty: 1 Total: 4 A confirmation of you order will be sent to the email address: [email protected], after you have finished your order. Add More Items: Finish Order Done session_cart_checkout.php 1. <? 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. session_start(); $inventory = array( "001" => "Tooth Paste", "002" => "Facial Tissue" "003" => "Cotton Swabs" "004" => "Shampoo", "005" => "Conditioner", "006" => "Deodorant" ); function populate_cart() { global $name, $email, $items; 13. $items = array (0, 0, 0, 0, 0, 0); →Go الشكل 5-2 البرنامج النصي session_cart.php
ص٣٧

نص مستخرج آليًا من الصورة، وقد يقع فيه خطأ.