title: Cannot get POST value of submitted form
body: <p>Can anybody see where I have gone wrong? I am trying to get the value of a field in a form via POST.</p>
  
  <p>The field is disabled and pre-filled. </p>
  
  <pre><code>&lt;form method="POST" action="actions/remove-daily-recipient.php"&gt;
      &lt;input type="text" name="recipientemail" value="email@email.com" disabled /&gt;
      &lt;input type="submit" value="Remove"/&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>The form submits correctly and goes to my script <code>remove-daily-recipient.php</code></p>
  
  <p>However the first line of this script, which should grab the value of the email field, gets an error:</p>
  
  <pre><code>$email = htmlspecialchars($_POST["recipientemail"]);
  echo $email;
  
  // The error
  Notice: Undefined index: recipientemail in [path/name] on line 5
  </code></pre>
  
  <p>What would be the cause of this? </p>
  
  <p>A few things I am thinking:</p>
  
  <ol>
  <li>There are multiple forms on the page. However shouldn't the submit button within that form only fire and POST the data filled in on that particular form? It shouldn't affect any other forms?</li>
  <li>The data is pre-filled and the field is disabled. Would it not like this? I think it should be able to get data from a pre-filled and disabled field?</li>
  </ol>
  
  <p>Thanks!</p>