I have two sections on my PHP form. One section allows to enter Customer information(Name, address etc.) and another section allows to enter Customer product and it’s details(about 15 text boxes) and submit button. The user can enter unlimited product and details for the same Customer. I have 2 tables. Customer table and Cust_Products table. So I think I have to submit the Form to itself and keep the first section data and clear out the second section. What is the best practice to achieve this functionality?
Share
Well, you could add a check to see if the form has been submitted to itself, and output the appropriate form, taking care to store the posted values along the way.