<?php
header ("Content-Type: text/vnd.wap.wml");
include ("config.php");
include ("mysqlclas.php");
echo "<?xml version=\"1.0\"?>\n";
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
<?php
if ($password!="" and $username!=""){
$check=new mysql(WEB_SERVER,WEB_USER,WEB_PWD,WEB_DB,"utf8");
$sql="select username from user where username='$username' and password='$password'";
$query=$check->query($sql);
$info=$check->fetcharray($query);
if($info==false){
echo "用户名或密码错误!";
}
else{ echo "欢迎!!";}
?>
<p>
$(username)<?php }?>
<?php else echo"用户名和密码不能为空";>
</p>
</card>
</wml>
