How do I create elements on a new html page, based on selected data from another html page [closed]

I’m creating a web application (html.css.js) where one can book a trip by boat. On page 1 there is a form with the option to select the amount of passengers. One page 2 I what to display the amount of selected passengers where each has an individual tag/element. When a passenger is selected a pre made html registration form is to be displayed. How do I send the value selected on page 1 to page 2 and generate the individual registration forms according to the selected value?