<?php
//Print out the corresponding language description based on the language name entered by the user
header('Content-type:text/html;Charset=utf-8 ');
echo <<<LANG
<from action='' method='post'>
; <datalist id ='lang '>
<option value="html"> : : & Lt;/label & gt;
# & lt; input Type = "Text" name = "LANG" ID = "name" list = "lang" & gt;
& lt; " value="Submit">
</from>
LANG;
echo $_POST['lang'];
// Notice: Undefined index: lang in C:\phpStudy\PHPTutorial\WWW\PHPEDU\switch.php on line 17?>
Embarrassing from form tag is wrong