if( isSet($_GET['rate5']) && $_GET['rate5']!==""){
write_rate($_GET['rate5']);
}
if( isSet($_GET['rate4']) && $_GET['rate4']!==""){
write_rate($_GET['rate4']);
}
if( isSet($_GET['rate3']) && $_GET['rate3']!==""){
write_rate($_GET['rate3']);
}
if( isSet($_GET['rate2']) && $_GET['rate2']!==""){
write_rate($_GET['rate2']);
}
if( isSet($_GET['rate1']) && $_GET['rate1']!==""){
write_rate($_GET['rate1']);
}
if( isSet($_GET['stringa']) && $_GET['stringa']!==""){
write_stringa($_GET['stringa']);
}
function write_rate($id){
$f = fopen ("rating.txt","a+") or die ("sorry, but the vote system is currently not working");
$string = "$id-";
fwrite ($f,$string);
fclose($f);
}
function write_stringa($stringa){
$a = fopen ("rating.txt","a+") or die ("sorry, but the vote system is currently not working");
$string = "$stringa!";
fwrite ($a,$string);
fclose($a);
header('location:clashoftheolympians_voted.php');
}
non so se potete capire dal codice quello che voglio fare...ho bisogno che quando questa pagina venga richiamata (nomepagina.php?rate4=4) oltre al rate scriva sul documento di testo una stringa e quindi nomepagina.php?rate4=4&stringa=qualcosa
non so se sono stato abbastanza chiaro...