How can I transfer the value of a form to thickbox?

Source: Internet
Author: User
Upload the value of a form to thickbox & lt; formmethod & quot; post & quot; name & quot; add_product & quot; id & quot; add_product & quot; onSubmit & quot; returncheckvalue () & quot; & gt; & lt; inputtype & quot; text & transfers the value of a form to thickbox

Preview required: the values of all forms are displayed on the new thickbox page, but only pop-up. Return to this page

What can I do ???? The preview button I wrote can be displayed in the pop-up box, but this page cannot be passed!

------ Solution --------------------
If you want to use the POST method to pass parameters


You can use $ _ POST ['text1'] to obtain table elements during transmission.

The preview button is completed using JS and can be completed using AJAX page requests.

Using JS: You can add a new hidden DIV layer, for example, the id is p1.








First, design what you need in p1
Then
When you click the preview button, assign the value to the input of the hidden layer and then display the layer.
You can also assign a value to the input of the hidden layer when entering the information, and then click "p" to display the information.
Script
Fucntion get_DivVlues (){
Document. getElementById ("d_1"). value = document. getElementById ("1"). value; // assign a value
...

Document. getElementById ("p1"). style. display = 'block'; // display layer
}
Script


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.