检索提交结果并在另一个操作中使用结果

Is there a way for me to retrieve a uID code when a form is submitted from my website to a 3rd party action page?

Then can the same form use the retrieved uID code to submit to a different action page?

I looked on a ton of sites but none really explain how I could possible retrieve the code from another site and use it in the same submission... I'm kind of lost on this one.

<form name="uID" class="mainform" action="action-page.com/init" method="get" target="_blank">
      <input type="hidden" name="hostedSecureID" value="cpt00000000" action/>
      <input type="hidden" name="hostedSecureAPIToken" value="0000000000000000"/>
      <input type="hidden" name="action" value="buildForm"/>
      <input type="hidden" name="return_url" value="pioneermediame.com" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="content_template_url" value="https://pioneermediame.com/test2/" no_space_b="true" no_space_e="true"/>

      <input type="hidden" name="cancel_url" value="/test1/" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="sess_name" value="" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="sess_id" value="" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="trans_type" value="auth_capture" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="payment_type" value="Credit_Card" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="allowed_types" value="American Express | MasterCard | Visa | Discover" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="required" value="all" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="collectAddress" value="2" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="hosted_tokenize" value="store_only" no_space_b="true" no_space_e="true"/>
      <input type="hidden" name="total_amt" value=""/>
      <fieldset>
       <legend class="block">
        Payment Info
       </legend>
       <ul class="fields">
        <li>
         <div class="block-01">
          <label for="AMOUNT">
           Amount
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="total_amt" class="required font-size-NaN m-font-size-NaN" value="" aria-required="true" style="" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
       </ul>
      </fieldset>
      <fieldset>
       <legend class="block">
        Billing Contact Info
       </legend>
       <ul class="fields">
        <li>
         <div class="block-01">
          <label for="NAME1">
           First Name
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_firstname" class="required font-size-NaN m-font-size-NaN" value="" aria-required="true" style="" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="NAME2">
           Last Name
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_lastname" class="required font-size-NaN m-font-size-NaN" value="" aria-required="true" style="" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="PHONE">
           Phone
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_phone" value="" size="20" style="" class="font-size-NaN m-font-size-NaN" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="EMAIL">
           Email
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_email" class="email font-size-NaN m-font-size-NaN" value="" style="" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="ADDR1">
           Billing Address 1
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_address" class="required font-size-NaN m-font-size-NaN" value="" aria-required="true" style="" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="ADDR2">
           Billing Address 2
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_address2" value="" style="" class="font-size-NaN m-font-size-NaN" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="CITY">
           City
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_city" value="" style="" class="font-size-NaN m-font-size-NaN" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="STATE">
           State
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_state" value="" style="" class="font-size-NaN m-font-size-NaN" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="ZIPCODE">
           Postal Code
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="customer_postal_code" class="required font-size-NaN m-font-size-NaN" value="" size="7" aria-required="true" style="" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01">
          <label for="COUNTRY">
           Country
          </label>
         </div>
         <div class="block-02">
          <input type="text" name="COUNTRY" value="USA" placeholder="USA" style="" class="font-size-NaN m-font-size-NaN" no_space_b="true" no_space_e="true"/>
         </div>
        </li>
        <li>
         <div class="block-01-push">
          <input type="submit" class="button--primary" value="Make Payment" no_space_b="true" no_space_e="true" onClick="displayuID()"/>
         </div>
        </li>
       </ul>
      </fieldset>
</form>

I need the form on submission to do the following:

  1. Send information to action-page.com/init and generate uID for client information using GET method
  2. within 1 minute the uID needs to be submitted to action-page.com/collection.php in GET method, to build a form on their website.

After the initial submission of the form code provided the user should not to do anything until the step 2 is completed. I'm getting stuck where it generates the uID, but I'm unsure how to use the retrieved uID from the first action-page and submit it to the second without the user doing anything.

Any suggestions are greatly appreciated.