Parašė sidicer· 2009 Lap. 28 16:11:40
#1
Sveiki
Norejau paklausti:
kaip padaryti, kad jeigu input text = ......
laukeliai tusti, parasytu viena
o jeigu norm viskas
parasytu kanors kita
mano kodaS:
<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'></a>
</td>
</table>";
}
// -----------------------------------------jau paspaudus mygtuka Registruotis----------------------------------------
if($register == "2"){
echo "<table align = center>
<td>
Tu sekmingai uzsiregistravai ;D
</td>
</table>";
}
?>
</head>
</body>
</html>
Redagavo sidicer· 2009 Lap. 28 17:11:01