Ho la necessità di accedere alla variabile array $riga in reload cioè dopo che il primo
(isset($_POST['ricerca'])) ha avuto esecuzione e l'utente cerca di eseguire il secondo
(isset($_POST['elric'])... vedi sotto
if (isset($_POST['ricerca'])){
echo "sono nella ricerca";
$ricnome=$_POST['nome'];
$ricmailfonte=$_POST['mailfonte'];
if ($ricnome){
$queryname="select * from segnalatori where nik='$ricnome'";
}
elseif ($ricmailfonte){
$queryname="select * from segnalatori where mail='$ricmailfonte'";
}
else{
echo "non è possibile effettuare la ricerca
";
exit();
}
//effettuo la query
$datiric=@mysql_query($queryname);
if (!$datiric){
echo "nessuna dato trovato
";
exit();
}
echo "<table border='1'>";
echo "<form action='" . $_SERVER['PHP_SELF'] . "' method='post'>";
echo "<tr>";
echo "<th>Nik</th><th>E-Mail</th><th>Note</th>";
echo "</tr>";
while($riga=mysql_fetch_array($datiric)){
echo "<tr>";
$idform=$riga['idsegnalatore'];
echo "<td>".$riga['nik']."</td><td>".$riga['mail']."</td><td>".$riga['note']."</td>";
echo "</tr>";
}
echo "<tr><td><input type='submit' name='elric' value='Elimina'></td></tr>";
echo "</form>";
echo "</table>";
}
if (isset($_POST['elric'])){
//QUI HO LA NECESSITà DI ACCEDERE ALLA VARIABILE ARRAY $RIGA[] COME FACCIO.
//Considera che qui ci arrivo in reload cioè dopo che
//(isset($_POST['ricerca'])) ha avuto già esecuzione
}
Grazie ma era questo il problema volevo sottoporre.