Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="hidden" name="product" type="text" value="' . $product_name . '"/>
- <input name="quantity" type="text" value="' . $each_item['quantity'] . '" />
- <?php
- $product = $_POST['product'];
- $quantity = $_POST['quantity'];
- $name = $_POST['name'];
- $adress = $_POST['adress'];
- $city = $_POST['city'];
- $phone= $_POST['phone'];
- $email = $_POST['email'];
- $to = 'marko@gmail.com';
- $subject = 'Order';
- $message = "<p> ".$product." ".$quantity." ".$name." ".$adress." ".$city." ".$phone." `enter code here`".$email." </p>";
- $headers = 'MIME-Version: 1.0' . "rn";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
- $headers .= 'From: Linux rulez' . "rn";
- $mail=mail($to, $subject, $message, $headers);
- if($mail){
- echo"Success!";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement