A simple form submission, and then return to the submission page, need the corresponding data resolution method

Source: Internet
Author: User
A simple form submission, and then return to the submission page, need the corresponding data
test3.php:


















test4.php:

$brand = $_request["brand"];
$model = $_get["model"];
$years = $_get["Years"];
$a = Array ($brand, $model, $years);
?>

Now want to get $ A and on the form submission page

Change the value of the value to the element in the $ A array.

Thank you.


------Solution--------------------
Define a global variable, assign a value when test3.php commits, and return, the call will be OK.
PHP Code
Global variable page//ini.php$ini = Array ();
------Solution--------------------
Arrays are not the same thing? What are you going to show?
------Solution--------------------
test4.php:

$brand = $_request["brand"];
$model = $_get["model"];
$years = $_get["Years"];
$a = Array ($brand, $model, $years);

Include ' test3.php ';
?>


test3.php
...

  • Related Article

    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.