How to submit the content in the same form to two different pages?

Source: Internet
Author: User
How to submit the content in the same form to two different pages? There is a form, action = & quot; a. php & quot;. there is an input tag in this form and you want to submit its value to B. php. how can this problem be implemented ?, Ajax puts the form parameters together and sends them to two pages. through j, how can I submit the content in the same form to two different pages?
There is a form, action = "a. php". there is an input tag in this form. how can I implement it to submit its value to B. php?

------ Solution --------------------
Ajax: you can combine the form parameters and send them to two pages,
------ Solution --------------------
Modify the value of action through js.
------ Solution --------------------
You can submit the request to a. php in the background, and then send the input value to B. php. then you can get B. php.
------ Solution --------------------
The simplest one is submitting in form, and the other is submitting in js.
------ Solution --------------------
More simply, a. php and B. php are combined.
------ Solution --------------------
You just need to call the function of B in.
------ Solution --------------------
Submit to a page, and then go to the method body or B method body
------ Solution --------------------
HTML code
"Target =" _ blank ">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.