title: Multiple Selection in Enquiry Page - Mailing Function
body: <p>Actually Im working on a enquiry page where I have Multiple Selection Options and which I want it on the mail once user Select Multiple options and submit the form.  For this I have done below code, but failed to understand the problem, Please help me friends...</p>
  
  <p>This is HTML Code</p>
  
  <pre><code>&lt;select id="lstFruits" name="product_drop[]" multiple="multiple"&gt;
  &lt;option value="Orange Color "&gt;Orange Color &lt;/option&gt;
  &lt;option value="Red  Color"&gt;Red Color&lt;/option&gt;
  &lt;option value="Black Color"&gt;Black Color&lt;/option&gt;
  &lt;option value="Purple Color"&gt;Purple Color&lt;/option&gt;
  &lt;/select&gt; 
  </code></pre>
  
  <p>And a PHP code for mailing function I used below code, which is working and other fields like name, no, cname, mail &amp; message are receiving on the mail but just this multiple selection thing is not coming to the mail. prod=implode is not working..</p>
  
  <pre><code>&lt;?php
  $name    =  trim($_POST['name']);
  $no    =  trim($_POST['no']);
  $cname  =  trim($_POST['cname']);
  $mail     =  trim($_POST['mail']);
  $mess   =  trim($_POST['message']);
  
  if(isset($_POST['product_drop']))
  {
  $prod=implode(',',$_POST['product_drop']);
  }
  
  
  $redirect_to = 'https://www.google.com';
  $a="";
  
  $to = "email@gmail.com";
  $subject = "Enquiry Received from Website";
  $message = "Name: " . $name ."\r\nContact No.: " . $no ."\r\nCompany Name: "
  . $cname . "\r\nMessage: " . $mess . "\r\nProduct: " . $prod."";    
  
  $from = "Website";
  $headers = "From:" . $from . "\r\n";
  $headers .="Cc: ". $a . "\r\n";
  
  
  $headers .= "Content-type: text/plain; charset=UTF\n";
  
  
  if(@mail($to,$subject,$message,$headers))
  {
      header("Location: $redirect_to");
      exit;
  }
  ?&gt;
  </code></pre>
  
  <p>Thanks In Advance!!!</p>