dutchy Posted August 22, 2005 Author Report Share Posted August 22, 2005 tikais kas? :) Skriptaautors droši ka zinās Link to comment Share on other sites More sharing options...
bubu Posted August 22, 2005 Report Share Posted August 22, 2005 Tu laikam īpaši neattapīgs pagadījies.. viss_kedaas jau tev priekšā pateica, kas tur trūkst. Link to comment Share on other sites More sharing options...
SkaKri Posted August 22, 2005 Report Share Posted August 22, 2005 (edited) bļā (atvainojos), apnicis... kur tik neapķērīgi... pat man pieleca... waaau.. <?php $ip_adreses = file("ip_log.txt"); for($i=0;$i<count($ip_adreses);$i++) { $exp = explode("=", $ip_adreses[$i]); if ($_SERVER['REMOTE_ADDR'] == trim($exp[1])) // $jau_regots = true; $dati = array($exp[0],$exp[1]); } if ($jau_regots == true){ echo 'Sveiks '.$dati[0]; } else { echo '<form action="test_.php" method="post">'; //maini pret savas formas adresi echo '<h1>Tavs vārds</h1>'; echo '<table>'; echo '<tr><td>Vārds:</td><td><input type="text" name="username"></td></tr>'; echo '</form>'; } ?> //test_.php <-remove shito <?php $f = fopen('ip_log.txt', 'a'); fwrite($f, $_POST['username'] . '=' . $_SERVER['REMOTE_ADDR'] . "\n"); fclose($f) ?> derēs? ;) Edited August 22, 2005 by SkaKri Link to comment Share on other sites More sharing options...
Recommended Posts