View Single Post
  #5 (permalink)  
Old 03-14-10, 08:31 AM
Raffikki529 Raffikki529 is offline
Newbie Coder
 
Join Date: Mar 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
PHP Code:

           $to "admin@email.com";

           
$headers "From: orders@email.com";
           
$subject "Order from " . - $_POST['Name'];
           
$name_field $_POST['Name'];
           
$surname_field $_POST['Surname'];
           
$tel_field $_POST['Tel'];
           
$info_field $_POST['Info'];
           
$address_field $_POST['Address'];
    
    



                                                                        
                            
        
        
                                                            
$inc = include( 'inc.php' );                        

                    
                                                    
                                                            
$body "From: $name_field\n $surname_field\n Email: $email_field\n Tel: $tel_field\n Information:\n $info_field Products:\n $inc;";
                                                            
$thanks "Thank you for using our online order system! We are processing your order and will get back to you soon!";
                                                            
                                                            

                                                            
                                            
                                                            
                                                            echo 
"<br>";
                                                            echo 
"<br>";
                                                            echo 
"Order has been submitted";
                                                            echo 
"<br>";
                                                            echo 
"<br>";
                     
                     
                        
                     
                    
                 
mail($to$subject$body$headers);
                 
mail($email_field$subject$thanks$headers);
             
                    echo 
$inc
Reply With Quote