|
建立动态的WML站点3 ~ admin
下一页称为index2.wml,让你选择是通过科目还是姓来查询数据库。
Header("Content-type: text/vnd.wap.wml"); Header("Cache-Control: no-cache, must-revalidate"); Header("Pragma: no-cache"); echo ("<?xml version='1.0'?>"); ?> "http://www.wapforum.org/DTD/wml_1.1.xml" > <WML> <CARD id=card2 title="Kind of research"> <P><BR><?php echo ("You are checking "); if ($choice == "exams_data") { echo (" examinations timetables.<BR>n"); } else if ($choice == "consulting_data") { echo (" consulting hours.<BR>n"); <BR>} else { <BR>echo ("I don't know what and there is some problem.<BR>n"); } ?> <P><BR>You can search by surname (either exact or partial) or by subject (either exact or partial).<BR><BR>Select the kind of research. <BR><P> <SELECT name="<?php echo (" $choice?);<br> ?>" value="surname" title="research"> <OPTION selected value=surname>professor's name</OPTION> <OPTION value=subject>subject</OPTION> |