Размер файла: 1.18Kb
<?
header("Content-type: text/vnd.wap.wml");
echo("<?xml version=\"1.0\"?>\n");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n\n");
if (!$signin)
{
exit;
}
else
{
$msg .= "$signin|$email|$theme|end\n";
$to = "[email protected]";
$subject = "free site signup - from ws";
$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
}
?>
<wml>
<card title="signup form">
<?
if (empty($signin) or empty($email) or empty($theme)) {
?>
<do type="accept" label="send form">
<go method="post" href="<? echo "$PHP_SELF"; ?>">
<postfield name="signin" value="$signin"/>
<postfield name="email" value="$email"/>
<postfield name="theme" value="$theme"/>
</go>
</do>
<p>
signin (3-12 chars)
<input title="signin" name="signin"/><br/>
email
<input title="email" name="email"/><br/>
theme
<input title="theme" name="theme"/>
<?
} else {
?>
<p>The following mail has been sent:<br/>
Company : <? echo $signin; ?>
<br/>
Email : <? echo $email; ?>
<br/>
Enquiry : <? echo $theme; } ?>
</p>
<a href="menu.wml">Home</a>
</card>
</wml>