title: PHP Drop Down Menu to Select the Subject for an email
body: <p>I have created a php page to send an email, however, I'd like to create a drop down menu to select a suffix for the subject of the email.</p>
  
  <p>Example: 
  Drop menu options: dog, cat, duck.</p>
  
  <p>If cat is selected,
  an email is sent with the subject: "I am a cat"</p>
  
  <p>Here is the code I'm using to send the email:</p>
  
  <pre><code>&lt;?php
   $to = "xxxxx@gmail.com";
   $subject = "I am a cat";
   $body = "test";
   if (mail($to, $subject, $body)) {
     echo("&lt;font size=\"18\" face='Arial'&gt;Email successfully 
  
  sent!");
    } else {
     echo("&lt;h1&gt;Email delivery failed…&lt;/h1&gt;");
    }
   ?&gt;
  </code></pre>
  
  <p>How can I alter the code create the menu?</p>
  
  <p>Thank you for your help.</p>