I am working on a PHP form with a set of input fields, and 3 buttons.
1. The ADD button will take the input and add it to a table displayed on the same page just bellow the input fields.

2. The SUBMIT button will deposit the entire table to another page for processing.

3. The Reset button will reset the input fields.

I am unable to define the working of the 1st button.

Please help me out.

7 Years
Discussion Span
Last Post by michelle2003

I think AJAX is your answer.
have a file that outputs a table based on the supplied input
when the user changes the select menu this file is re-retieved and output in a div below the form, and when form is processed have javascript take the content from the div, place it in a hidden field and post the form.

Hopefully this helps!!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.