pizzipie 0 Newbie Poster

I am trying to show a series of forms and process the related data by calling thru function calls. ie:

 foreach($Table as $value) {

     ShowTableForm($cxn, $Table, $labels[$Table])

           1. shows form for called $Table
           2. allows data entry for $Table
              and Inserts $Table info into
              Database

     return()

           if($_POST['data-$key']='this') do that;
           if($_POST['data-$Table']='xxx') do yyy; 
           if($_POST['data-$Table']='zzz') do aaa;
           etc., etc. 
}

Problem: Forms cannot be processed one at a time.The browser will not stop at the submit line (or where-ever) to allow entry of that forms data. What it does do is show ALL table forms at once.

How can I process the information from each form one at a time ?

Thanks RP

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.