View file mail.php

File size: 1.13Kb
<?php
Header('Cache-Control: no-cache, must-revalidate');
Header('Content-type:application/xhtml+xml;charset=utf-8');
$rnd=rand(10,99);
$f=fopen('rand.dat','w');
fputs($f,$rnd);
fclose($f);
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"><head><title>E-Mail</title>
<link rel="stylesheet" type="text/css" href="../style.css" />
</head><body><div style="text-align: center">
<form action="sendmail.php" method="post">
<div class="border">
E-mail:<br /><input type="text" name="to" maxlength="60" value="@" /><br />
Tема сообщения:<br /><input type="text" name="sub" /><br />
Tекст сообщения:<br /><input type="text" name="msg" /><br />
От кого:<br /><input type="text" name="who" maxlength="60" /><br />
Введите число <?php echo $rnd; ?>:<input type="text" size="3" name="rnd" /><br />
<input type="submit" value="Отправить" />
</div></form>[<a href="../main.php">На главную</a>]</div></body></html>