I am constructing a form in which a user enters input, example, User enters "Favorite Car", in the event the user has more than 1 favorite car, I will like to add functionality to let him add the second car by clicking an "Add New Car" button. When he does that, a new form allowing him to enter input of the car again will appear, but with a "Previous button" to allow him to return to the first car he entered. Can such be executed using php? any resource or link towards achieving this or similar would be helpful.
Pagination seems close to the solution but it is not yet saved to the database.
thank you