Parašė Tomcis· 2009 Lap. 28 18:11:01
#8
Štai kodas nr.1:
<html>
<body>
<head>
<title>TESTAS - Naujienos</title>
<?php
$register = $_GET['register'];
//------------------------------------------Tik iejus i web-------------------------------------
if($register == ""){
echo"<p align = center>
Pirma turi Uzsiregistruoti
<br><a href='?register=1'>REGISTRACIJA</a>
</p>";
}
//------------------------------------------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' name='submit'></a>
</td>
</table>";
}
// -----------------------------------------jau paspaudus mygtuka Registruotis----------------------------------------
if($register == "2"){
echo "<table align = center>
<td>
Tu sekmingai uzsiregistravai ;D
</td>
</table>";
}
?>
</head>
</body>
</html>
ir nr.2 :
if(empty($_POST['nick'])) {
echo "veik";
} else {
echo "ne";
}
Redagavo Tomcis· 2009 Lap. 28 19:11:41