In a php, I defined two forms. when the first form is submitted, the second form is generated. after the second form is submitted, the data in the first form cannot be obtained. how can this problem be solved?

Source: Internet
Author: User
In a php file, I define two forms. when the first form is submitted, the second form is generated. after the second form is submitted, the data of the first form cannot be obtained, what should I do? In a php file, I define two forms. when the first form is submitted, the second form is generated. after the second form is submitted, the data of the first form cannot be obtained, what should I do? & Lt; form & nbsp; methodget & gt; & lt; input & nbsp; type in a php file, I define two forms. after the first form is submitted, the second form is generated. after submitting the second form, the data in the first form cannot be obtained. what should I do?
In a php file, I define two forms. when the first form is submitted, the second form is generated. after the second form is submitted, the data of the first form cannot be obtained, what should I do?
// The first form
Echo ""; // The second form
Var_dump ($ m );
?>
After the second submission, $ m is not available. how can we pass $ m to the end?
I am a newbie and do not know cookie or session. Thank you!

Form php submit transfer data

Share To: foreach ($ _ POST as $ k => $ v) echo"";

How can this problem be solved? When a single page of a session table is used, no matter how you set it, the performance of "rollback" is unsatisfactory.


Reference:
Quote: reference:

Don't make things so complicated
Your second form is created by the first form handler.
Put the submission of the first form in the form of hidden variables in the second form.

I think so too, but it does not hide variables. I hope you can refer to the code. thank you!

------ Solution --------------------
Put in What's the use outside?

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.