Beginner, questions about post value passing,

Source: Internet
Author: User
Cainiao asked for help. I wrote a simple program about post value transfer, online, etc. online, but I couldn't run the desired results. please refer to form. php & lt; form & nbsp; name = "form1" & nbsp; method = "post" & nbsp; action = "form1.php" & gt; & lt; table & nbsp; width = "40 Cainiao for help, questions about post value transfer, online, etc.
I wrote a simple program, but I couldn't run the desired results. please take a look.
Form. php

Form1.php

Form3.php
If ($ _ POST ["Submit"]! = ""){
Echo "your choice is:". $ _ POST [checkbox];
}
?>
Running result: enter java * php *. net in from. php.
Why can't I output the content in the selection box selected in form2.php in form3.php but only the checkbod?
------ Solution --------------------
Only the value of the value attribute will be submitted in the past, so it should be changed:
While (list ($ name, $ value) = each ($ data )){
Echo' ';
Echo $ value. "\ n ";
}

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.