Home > Backend Development > PHP Tutorial > Use PHP to implement a real linked drop-down list_PHP tutorial

Use PHP to implement a real linked drop-down list_PHP tutorial

WBOY
Release: 2016-07-13 10:58:42
Original
894 people have browsed it

Copy the following two files into the same file. Visit index.html through the web path to have a look. This is a linked update through iframe. The current content of list.php is relatively simple. You can Look at the database query through list.php, and then display the query result list.

index.html


 






list.php


$data = array("Beijing"=>array("Xiaoqiang","Wangcai","Xiaoqiang's father"),
"Tonghua"=>array("Xiaowen","Xiaosong","their son"),);

$city = $_GET["city"];

$result = $data[$city];

$str = "";

echo $str;
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631983.htmlTechArticleCopy the two files below to the same file and access index.html through the web path to have a look. This It is a linked update achieved through iframe. The current content of list.php is relatively simple. You see...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template