One form two post conflict problem

Source: Internet
Author: User
May I ask the next form I made two buttons two times post
Then press the first button and a table appears thinkphp page after the next page
The other button post is no effect.
Firebug look at the first button to see the post address how to solve


Reply to discussion (solution)

The address that the button submits directly is the address in the action of the Form form, two buttons you can submit with JS control

The address that the button submits directly is the address in the action of the Form form, two buttons you can submit with JS control



function Collectform (Fromid,actionurl)
{
document.getElementById (Fromid). Action=actionurl;
document.getElementById (Fromid). Submit ();
}
I am the JS control of two buttons back and forth can be but I have a button to generate a table has a page up and down the page button will affect the other button can not be used
  • 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.