Write PHP script that will pull list of values from (existing) MySQL database then use these values to generate URL which will be scraped (page1).
Page 1 sample: <[login to view URL]>
Page1 values (from form fields) will be written to MySQL database.
Page1 values will also be used to generate URL for page2 which will be scraped.
Page 2 contains a table which will be scraped and values written to MySQL database.
Page 2 sample: <[login to view URL]>