Parašė sidicer· 2009 Lap. 28 18:11:44
#9
//------------------------------------------paspaudus REGISTRACIJA--------------------------------------
if($register == "1"){
echo "<table align = center>
<td>
<br>Nickas: <input type = text name = 'nick'>
<br>Slaptazodis: <input type = password name = 'password'>
<br><a href='?register=2'><input type = 'submit' value = 'Registruotis'></a>
</td>
</table>";
}
// -----------------------------------------jau paspaudus mygtuka Registruotis----------------------------------------
if($register == "2"){
if (empty($_POST['nick'])) {
echo "Neuzpildei visu laukeliu";
} else {
echo "<table align = center>
<td>
Tu sekmingai uzsiregistravai ;D
</td>
</table>";
}
?>
</head>
</body>
</html>