Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <input type="hidden" name="product" type="text" value="' . $product_name . '"/>
  2.  
  3. <input name="quantity" type="text" value="' . $each_item['quantity'] . '" />
  4.  
  5. <?php
  6. $product = $_POST['product'];
  7. $quantity = $_POST['quantity'];
  8. $name = $_POST['name'];
  9. $adress = $_POST['adress'];
  10. $city = $_POST['city'];
  11. $phone= $_POST['phone'];
  12. $email = $_POST['email'];
  13.  
  14. $to = 'marko@gmail.com';
  15. $subject = 'Order';
  16.  
  17.  
  18. $message = "<p> ".$product." ".$quantity." ".$name." ".$adress." ".$city." ".$phone." `enter code here`".$email." </p>";
  19.  
  20. $headers = 'MIME-Version: 1.0' . "rn";
  21. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
  22. $headers .= 'From: Linux rulez' . "rn";
  23. $mail=mail($to, $subject, $message, $headers);
  24. if($mail){
  25. echo"Success!";
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement