Advertisement
MrShalun

Untitled

Dec 4th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <?php
  2. $data = $_POST;
  3. if( isset($data['do_signup']) )
  4. {
  5. $cart = R::dispense('shop');
  6. $cart -> name = $data['name'];
  7. $cart -> product = $data['product'];
  8. $cart -> price = $data['price'];
  9. R::store($cart);
  10. var_dump($data); die();
  11. }
  12. ?>
  13. <div id="cart" class="modal fade">
  14. <div class="shop">
  15. <div class="head">
  16. <h3>Оформлення замовлення</h3>
  17. </div>
  18. <form id="buy" method="POST" action="profile.php" >
  19. <label for="exampleInputEmail1">Ведіть П.І.П.:</label>
  20. <input type="user" class="form-control" id="user" name="name" required>
  21. <label for="product">Товар:</label>
  22. <input type="text" class="form-control" id="product" name="product" readonly>
  23. <label for="price">Сума:</label>
  24. <input type="text" class="form-control" id="price" name="price" readonly>
  25. <button type="submit" name= "do_signup"class="btn btn-primary">Придбати</button>
  26. </form>
  27. </div>
  28. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement