title: How to send Div Tag content via email using php form?
body: <p>I have a div that contains some order info from the online store I'm working on.
  I'm interested is there a way to send that content via php email form?</p>
  
  <p>This is the email script I'm using:
  Obviously, the $message variable is what bugs me.</p>
  
  <pre><code>&lt;?php
                              if (isset($_POST['email'])) {
                                  $to = "slavishaofficial@gmail.com";
                                  $subject = "Ovo je vasa porudzbina";
                                  $email = 'viroposetilac@gmail.com';
                                  $message = ???div content???;
                                  $headers = "From: $email";
                                  $sent = mail($to, $subject, $message, $headers);
                                  if ($sent) {
                                      echo "&lt;script&gt;alert('Uspesno ste prosledili porudzbinu na mail')&lt;/script&gt;";
                                  } else {
                                      echo "&lt;script&gt;alert('Doslo je do problema prilikom slanja porudzbine')&lt;/script&gt;";
                                  }
                              }
  
                              ?&gt; 
  </code></pre>