Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5.  
  6.  
  7. ?>
  8.  
  9. <!DOCTYPE HTML>
  10. <html lang ="pl">
  11. <head>
  12. <title>Car company</title>
  13. <meta charset="utf-8"/>
  14. <meta http-equiv="X-UA-Compatible" content ="IE=edge,chrome=1" />
  15. <link rel="stylesheet" href="styles.css" type="text/css" />
  16.  
  17. </head>
  18.  
  19. <body>
  20.  
  21. <?php
  22. $array["shopping_cart"] = $_SESSION["shopping_cart"];
  23. foreach ($array["shopping_cart"] as $value) {
  24. print_r($value);
  25. echo join(',',$value);
  26. echo $_SESSION["shopping_cart"]["quantity"];
  27. ?>
  28. </br>
  29. <?php
  30. echo $array["shopping_cart"];
  31. print $array["shopping_cart"];
  32. }
  33.  
  34. ?>
  35.  
  36. </br>
  37. <?php
  38.  
  39.  
  40. ?>
  41.  
  42. <?php
  43.  
  44. if(isset($_SESSION['fail']))
  45. echo $_SESSION['fail'];
  46.  
  47.  
  48. ?>
  49.  
  50. </body>
  51.  
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement