PHP Error- filter_input() expects parameter 3 to be integer, string given : <p>I'm trying to create a form that stores details to a database, however, when I try to sanatize/validate the inputs I keep getting the following error</p>

<blockquote>
  <p>filter_input() expects parameter 3 to be integer, string given</p>
</blockquote>

<p>My code is as follows, any help on how to sort this would be great!</p>

<pre><code>$customer-&gt;EMAIL = filter_input(INPUT_POST, 'EMAIL', 'FILTER_VALIDATE_EMAIL');
$customer-&gt;TITLE = 'TITLE';
$customer-&gt;FNAME = filter_input(INPUT_POST, 'FNAME', 'FILTER_SANATIZE_STRING');
$customer-&gt;LNAME = filter_input(INPUT_POST, 'LNAME', 'FILTER_SANATIZE_STRING');
$customer-&gt;DOB = filter_input(INPUT_POST, 'DOB', 'FILTER_VALIIDATE_DATE');
$customer-&gt;PHONE = filter_input(INPUT_POST, 'PHONE', 'FILTER_SANATIZE_STRING');
$customer-&gt;COUNTRY = filter_input(INPUT_POST, 'COUNTRY', 'FILTER_SANATIZE_STRING');
$customer-&gt;STAFF_NUM = filter_input(INPUT_POST, 'STAFF_NUM', 'FILTER_VALIDATE_INT');
$customer-&gt;SUBSCRIPTION = filter_input(INPUT_POST, 'SUBSCRIPTION', 'FILTER_SANATIZE_STRING');
$customer-&gt;PASSWORD = filter_input(INPUT_POST, 'PASSWORD', 'FILTER_SANATIZE_STRING');
</code></pre>
