passing Pre-filled fields in User Input between DataBase

Hi - I have a database that stores a list - e.g. record 1, 2, 3
This list creates a dynamic URL page (e.g. page 1,2,3) with a contact form at the end adding phone numbers etc.
And all these are passed to another database.
What is the best way to know which dynamic url page generated the request.

You could get an identifier for the page from the URL using the wixLocation.url or from the current item of the dynamic dataset that is on the page.

You can later take this identifier and set it to a field value in the dataset you use for the form.