How To Pull Information From A Page And Input The Data In The WordPress User Database Table

I do not think you need to scrape the page. Here is what I think you should do:

  1. Fill form details on page 1
  2. Submit the form on page 1
  3. Get forwarded to page 2
  4. A special unique code is generated by 3rd party software on form 2
  5. Submit this unique code to the server via AJAX
  6. Once the code is save, display it to the user

As you can see,

  1. You do not need to scrape, but rather read the code that is returned to you before displaying it
  2. You submit that code via AJAX, so no need to do a submit action

If you have to absolutely scrape (which I highly doubt), then you go ahead with that, but after you do, you still have to submit your code via AJAX.

Hope this helps.