Просмотр файла registration.php

Размер файла: 796B
<?php

include 'include/head.php';

if(empty($act))
{
$key = mt_rand(10000,99999);
$_SESSION['key'] = $key;
echo '<form action="reguser.php?" method="post"><u>Registration(<a href="registration.php?act=rules">rules</a>):</u><br />
Name<br/><input name="name" type="text"  maxlength="8" /><br/>
Pass<br/><input name="pass" type="password"  maxlength="8" /><br/>
'.$key.'<br/><input name="key" type="text"  maxlength="5" /><br/>
<input type="submit" value="Registration" /></form>';
echo '<a href="login.php">Login in site</a>';
}
else
{
echo '<u>See site\'s rules!</u><br/><br/>

Rule 1<br/><input type="text" value="Rule - 1"><br/>
Rule 2<br/><input type="text" value="Rule - 2"><br/><br/>
<a href="registration.php">Registration</a>';
}
include 'include/foot.php';

?>