Previously summary: Before I saw the time around, recently encountered a problem.
For example, a.html using a form to upload a file to b.php,b.php returns a JSON-formatted array of arr, but I also need to pass this arr to another c.php processing.
How can I get c.php to receive this arr?
At first I thought it was a.html will pass the message to c.php, and then c.php use curl to call b.php, seemingly not.
Another argument is that you can simulate a form submission in c.php? This is not clear, look again later.
Finally, my approach is to send the received arr into the inline frame <iframe>, plus a button to confirm the commit (submitted to c.php, the previous form has an upload button is submitted to b.php), with JS crawl <iframe> The arr in. Where <iframe> uses the attribute Hidden:hidden.
Frame structure label (<frameset>)
- Frame structure label (<frameset>) defines how to split a window into a frame
- Each frameset defines a series of rows or columns
- The Rows/columns value specifies the area of the screen that each row or column occupies.
1 < frameset cols = "25%,75%" > 2 src = "frame_a.htm" > < frame src = "frame_b.htm" > 4 </ frameset >
View CodeBasic considerations-Helpful tips:
If a frame has a visible border, the user can drag the border to change its size. To prevent this from happening, you can add: noresize= "Noresize" to the <frame> tag.
Add <noframes> tags to browsers that do not support frames.
Important: You cannot use the <body></body> tag with the <frameset></frameset> tag simultaneously! However, if you add a <noframes> tag that contains a piece of text, you must nest the text in the <body></body> tag.
1 <HTML>2 3 <Framesetcols= "25%,50%,25%">4 <Framesrc= "/example/html/frame_a.html">5 <Framesrc= "/example/html/frame_b.html">6 <Framesrc= "/example/html/frame_c.html">7 8 <noframes>9 <Body>Your browser cannot handle the frame!</Body>Ten </noframes> One A </Frameset> - - </HTML>
View Code
Navigation function, the combination of the property target and name, you can open a page that originally opened a new page, in this page to specify the name of the frame opened.
Use of anchors, attribute href and name combination, when opening a new page directly to the corresponding section or, in this page quickly jump.
Inline frame, used in <body>, and target can be used to solve the problem I started talking about.
1 <!DOCTYPE HTML>2 <HTML>3 <Body>4 5 <iframesrc= "/example/html/demo_iframe.html"name= "Iframe_a"></iframe>6 7 <P><ahref= "http://www.w3school.com.cn"Target= "Iframe_a">W3School.com.cn</a></P>8 9 <P><b>Comments:</b>Because the target of the link matches the name of the IFRAME, the link opens in the IFRAME.</P>Ten One </Body> A </HTML>
View Code
The text of the above paragraph is from: W3school
HTML Framework Learning