mi dice "parse error" nella linea 41nn capisco proprio cosa è!!
![]()
codice:<?php $file_reg="passdb.php"; $nick=$_GET['nick']; $password=$_GET['password']; $age=$_GET['age']; $sex=$_GET['sex']; $nation=$_GET['email']; $nick=strtolower($nick); $nick=stripslashes($nick); $password=strtolower($password); $nation=stripslashes($nation); if (!(file_exists($file_reg))) {fopen($file_reg,"w");} $utente_ok=1; $ut_regist=file($file_reg); $dim_reg=count($ut_regist); for ($i=0;$i<$dim_reg;$i++) { $utente=chop($ut_regist[$i]); $dati_ut=explode("|",$utente); $nick_ut=$dati_ut[0]; $pass_ut=$dati_ut[1]; if ( $nick==$nick_ut ) $utente_ok=0; { echo "Nome utente già in uso, provare con un altro."; } if ($utente_ok==1) { $utente=$nick."|".$password."|".$age."|".$sex."|".$nation."\n"; $ins_utente=fopen($file_reg,"a+"); fputs($ins_utente,$utente); fclose($ins_utente); echo "<center>Sei registrato. <a href=home.php> Torna alla home.</a>"; } } else{ echo "<center> Nick già utilizzato."; } ?>

nn capisco proprio cosa è!!
Rispondi quotando