From the drop-down menu, find the link between the two drop-down lists of php.

Source: Internet
Author: User
! (UI) after selecting a department, the employee name is obtained based on the selected department. (UI. Code for the two lists: & quot; echo & quot;-Select-& amp; nbsp; & quot;. $ gzh _ php drop-down menu database


After selecting a department, the employee's name is obtained based on the selected department.
Code for two lists:

"


Echo "-Select -";
@ Include "conn. php"; // link to the database
$ Gzh_num_result = mysql_query ("select gzh_num, gzh_name from gongzhong where gzh_renum = 0 order by gzh_num ;");
While ($ gzh_num_row = mysql_fetch_array ($ gzh_num_result ))
{

List ($ gzh_num, $ gzh_name) = $ gzh_num_row;
Echo"". $ Gzh_name .""; // Echosuboption ($ gzh_num, @ $ _ GET ['gzh _ num']) ;};?>           Echo"-Select-";
    ". $ Yg_name ."";};?>

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.