-----011-form.html-----
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8">5 <title>A PHP Web page</title>6 </Head>7 <Body>8 <Center>9 <formAction= "011-post.php">TenChoose a few words:<BR/> One <Selectmultiple= "multiple"name= "tower[]"> A <option>The day depends on the mountain</option> - <option>The Yellow River into the ocean</option> - <option>To the poor Trinidad</option> the <option>Better</option> - </Select><BR/> - <inputtype= "Submit"value= "Submit"> - </form> + </Center> - </Body> + </HTML>
-----011-post.php-----
1<! DOCTYPE html>234<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">5<title> a PHP page </title>67<body>8<?PHP9 if(isset($_get[' Tower ']))Ten foreach($_get[' Tower '] as $value) { One Echo $value, "<br/>"; A } - Else - Echo"Not a Choice"; the?> -</body> -