<?php 
header("Content-type: text/vnd.wap.wml;charset=windows-1251"); 
echo '<?xml version="1.0" encoding="windows-1251"?> 
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'; 
echo '<wml> 
<card id="main" title="Title">'; 
?> 
<small>
Сообщение:<br/>
<input type="text" name="body"/><br/>
Тема:<br/>
<input type="text" name="subject"/><br/>
Кому:
<input type="text" name="email"/><br/>
От кого:
<input type="text" name="from"/><br/>
<do type="accept" label="Отправить">
            <go href="sendemail.php" accept-charset="windows-1251" method="post" >
                <postfield name="subject" value="$(subject)"/>
                <postfield name="body" value="$(body)"/>
                <postfield name="email" value="$(email)"/>
                <postfield name="from" value="$(from)"/>
                <postfield name="go" value="go"/>
            </go>
        </do>
<br/>
<a href="index.php">Главная</a><br/>
</small>
</card></wml>