Размер файла: 1.08Kb
<?
require "conf.php";
$conn=mysql_connect(my_host, my_user, my_password);
mysql_select_db(my_db, $conn);
header("Content-Type: text/vnd.wap.wml");
header("Cache-Control: no-cache");
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
if(isset($HTTP_GET_VARS['UIN']))
{
$UIN=$HTTP_GET_VARS['UIN'];
}
else
{
$UIN="Guest";
}
$UINmd5=$UIN;
if(isset($HTTP_GET_VARS['pass']))
{
$pass=$HTTP_GET_VARS['pass'];
}
else
{
$pass="Guest";
}
print '<wml>
<card title="Написать" newcontext="true">
<p>
<input type="text" title="Сообщение" value="" maxlength="230" name="num" emptyok="false"/><br/>
<anchor title="OK">OK<go method="post" href="addmess.php?id='.$id.'&room='.$room.'&UIN='.$UIN.'&pass='.$pass.'">';
echo "<postfield name=\"text\" value=\"$(num)\"/>";
print '</go></anchor>
</p>
</card>
</wml>';
?>