title: How to loop through $_POST passing each post field as a parameter to a function?Edit
body: <p>I am just representing algorithmically what i want to achieve using a foreach loop and the $_POST array in php. </p>
  
  <pre><code>    function check_fields($_POST)
  {
   // provide $_post['field1'],$_post['field2']..so on
  
    foreach($_POST as $_POST['FIELD 1-N'] 
  {
  
   isvalid($_POST['FIELD1 - N']);
  }
  }
  </code></pre>
  
  <p>Hope you understand what I'm trying to ask...</p>
  
  <p>EDIT: $_POST['FIELD1'], $_POST['FIELD1']  and so on are variable names that are passed to isvalid() function.   What The isvalid() function does is use isset() and empty to check if the variable contains a value...</p>