title: PHP + JavaScript + MYSQL. Submitting text with check box values into separate databases
body: <p>just having some trouble with a webpage I'm developing. Its a cinema seating reservation system. </p>
  
  <p>At the moment i am using check boxes to represent the seats. These check boxes will be ticked and confirmed with this button and function. It will Update the status of the seat in its table using code on the page its sent too.</p>
  
  <pre><code>&lt;input type='button' value='Confirm Reservation' onclick='confirmReservation()'/&gt;  
  
          function confirmReservation() {
  
          var selectedList = getSelectedList('Confirm Reservation');
  
          if (selectedList) {
              if (confirm('Do you want to CONFIRM this Reservation :  ' + selectedList + '?')) { 
                  document.forms[0].statusA.value=0;
                  document.forms[0].statusB.value=1;
                  document.forms[0].action='bookingQueries.php';
                  document.forms[0].submit();
              } else {
                  clearSelection();
              }
          }
      }
  </code></pre>
  
  <p>My problem is that I'm trying to add a text form that the persons Name can be entered into and sent to a separate table storing the booking Information. I would like to do this using the same 'Confirm button' used for the check boxes. Iv looked around and still haven't found a way of doing this.
  Any suggestions?</p>
  
  <p>Thanks in advance.</p>