How to transmit values between different forms

Source: Internet
Author: User
How to transmit values between different forms? & Lt ;? Phpecho & quot; & nbsp; & lt; formname = f1mothod = GET & gt; & lt; inputtype = checkboxname = C1checked & gt; C1 & lt; br & gt; & lt; inputtype = checkboxname how to transmit values between different forms?
Echo"




"
$ A = $ _ GET [???];
Echo $;
?>

The code is as above. because of layout requirements, the check box and the submit button are in different forms. how can I write the code to click submit in f2 to get the selected f1 data? How did they transmit the information?

By the way, the above $ a =$ _ GET [???], I want to express $ a = to get data, but I won't write it. the format is correct. thank you for your advice.

------ Solution --------------------
Use js to register the subibd event when you click f2 (other events are acceptable), and then process the above checkbox in the event, for example, use jquery $ ('input [type = checkbox] '). attr ('checked', 'checked ');
------ Solution --------------------

------ Solution --------------------
Print_r ($ _ GET); // you will know the value you want to obtain.

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.