Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3755986
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:46:57+00:00 2026-05-19T09:46:57+00:00

I have a form (on domain 1) that is currently being submitted to a

  • 0

I have a form (on domain 1) that is currently being submitted to a different domain (domain 2) via PHP cURL functions. The need to send some of the data to a DIFFERENT domain (domain 3) has caused me some confusion.

Basically I was thinking of using a hidden form that will echo some of the input’s values (form submitted to domain 2) and submit to “domain 3”. Is there a better way to do this? Possibly the curl_multi functions?

The main (non-hidden) form is utilizing via jquery’s AJAX functions. Is there a way to make 2 form submissions utilizing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:46:58+00:00Added an answer on May 19, 2026 at 9:46 am

    I’m not entierly sure what you are trying to do but I will make a guess.

    You have one page that submits to your domain.

    The receiving php page then resubmits this data to domain2.

    Now you need some of the data to be submitted to domain3 to?

    As you cannot post 2 forms at once you either have to make 2 posts from the client, one for each target domain, using ajax.

    The other solution I would use is have some extra hidden field mapping which fields that should be submitted to which domain.

    This could contain either a JSON string or any other format that can list domains + an array for each domain with the fields.

    Ex:

    <input type="hidden" name="fieldmap" value='[{"domain":"domain2,"fields":["fields1","field2","field3"]},{"domain":"domain3,"fields":["field3"]}]'>
    

    The field example should be escaping the ” inside the value attribute as "” but for readability I have not none this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that handles editing of a domain model (A). This domain
I have an Windows Form application that supplies the User Name, Domain, and Password
I have a form that is using the jQuery validate functionality, with some custom
On my domain I have a form workflow where users enter data on one
I have my domain object, Client , I've got a form on my JSP
I have form, where some fields are looks like rows, so I can add/delete
I have an application that pulls names from the active directory for the domain
I have a website on Domain A that has a page with an html
I have URLs of the form http://domain/image/⟨uuid⟩/42x42/some_name.png . The Web server (nginx) is configured
I currently have a Spring MVC controller that takes a MultipartFile @RequestMapping(method = RequestMethod.POST)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.