title: Trouble getting PDO delete statement to execute
body: <p>I am having trouble getting a form to post a variable and then have my PDO statement execute a delete. I do know that the variable $resulting[WID] does have the correct value stored in it in my form. The problem is lies in passing the variable from this form to the code below to execute the delete statement. The error am getting is: Invalid parameter number: parameter was not defined</p>
  
  <p>//here is the php/PDO code:</p>
  
  <pre><code> if(isset($_POST['remove'])){
   $the_WID = $_POST['WID'];
   echo "here is the WID" . $the_WID;
  
   $dlt = "DELETE FROM writing WHERE writing.WID = :writing.WID";
   $stmtdlt = $dbh-&gt;prepare($dlt);
   $stmtdlt-&gt;bindParam(':writing.WID', $the_WID, PDO::PARAM_INT);                                           
   $stmtdlt-&gt;execute(); 
   }
  </code></pre>
  
  <p>//here is the form</p>
  
  <pre><code>&lt;form action="" method="post"&gt;
  &lt;button type="submit"&gt;Delete&lt;/button&gt;
  &lt;input TYPE="hidden" name="remove" VALUE="&lt;?php $resulting[WID]; ?&gt;"&gt;
  &lt;/form&gt;
  </code></pre>