I am trying to find out the best way to do the following.

The website with have some content and then an input field. The information the visitor inputs into the field will then be used throughout the following pages/questions.

I have done part of it using just php, but it creates a ton of pages, and having a hard time finding a way to use the information given from one page to be used through the whole series of questions and pages. Not just the one after.

Am I not sure if the best way would be to have the information all go into a databases, and then call for the information when needed. And have a separate page for each question

Or if it is possible to have a single page that has a questions, when it is answered, the input is relayed back on the same page, with additional content or questions, and that is repeated multiple times.

I am not stuck on one way or the other, just wondering what is possible, and what the best way to go about it would be.

Thanks a ton