In a form form, there are multiple select, and after submitting to the background file, how to get to the selected values of these several select?

Source: Internet
Author: User
In a form form, there are multiple select, after submitting to the background file, how to get to the selected values of these several select??

In a form form, there are multiple select, after submitting to the add.php file, how to get to the value of the two select selected??

------Solution--------------------
$_post[' Selteaid '];
$_post[' Selclaid '];


------Solution--------------------
Is the action parameter in the form form useful?
If useful:
if (Isset ($_get[' addteahcer ')) {
echo "drop-down menu 1-->>";p rint_r ($_post[' selteaid ');
";
echo "drop-down menu 1-->>";p rint_r ($_post[' selclaid ');
";
}
The premise is that the drop-down menu in your front-end page has the selected value:
while ($row = Mysql_fetch_array ($result 2)) {if ($row [' id '] = = 1) {echo "" . $row [' id ']. ""; } else{echo "" . $row [' id ']. ""; } }
------Solution--------------------
The Name property of the different select is set differently, and then the $_post is used to obtain the
------Solution--------------------

Backstage $_post[' A ']$_post[' B ']$_post[' C ']

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.