Advertisement
rig26

php2

Feb 27th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. </head>
  6. <body>
  7. <?php
  8. $foodTotalPrice1 = $_POST['fPrice1'];
  9. $foodTotalPrice2 = $_POST['fPrice2'];
  10. $foodTotalPrice3 = $_POST['fPrice3'];
  11. $foodTotalPrice4 = $_POST['fPrice4'];
  12. $foodTotalPrice5 = $_POST['fPrice5'];
  13. $drinkTotalPrice1 = $_POST['dPrice1'];
  14. $drinkTotalPrice2 = $_POST['dPrice2'];
  15. $drinkTotalPrice3 = $_POST['dPrice3'];
  16. $drinkTotalPrice4 = $_POST['dPrice4'];
  17. $drinkTotalPrice5 = $_POST['dPrice5'];
  18. $totalPricef1 = 0;
  19. $totalPricef2 = 0;
  20. $totalPricef3 = 0;
  21. $totalPricef4 = 0;
  22. $totalPricef5 = 0;
  23. $totalPriced1 = 0;
  24. $totalPriced2 = 0;
  25. $totalPriced3 = 0;
  26. $totalPriced4 = 0;
  27. $totalPriced5 = 0;
  28.  
  29. echo "List of Orders"."<br>";
  30.  
  31. if (!empty($foodTotalPrice1)) {
  32. $totalPriced1 *= 65;
  33. echo "Sisig "." $foodTotalPrice1 ". "";
  34. }
  35. ?>
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement