salve ho questo form:
che apre questo script:Codice PHP:
<Center>
<form name="esplodi" method="post" action="usersOperation.php">
<table bgcolor="#FF9900" Border="0" cellpadding="5" cellspacing="2" class="tabella" width="90%" >
<tr bgcolor="#FFCC00">
<th>
Società
</th>
<th>
</th>
<th>
Registrata
</th>
<th>
</th>
</tr>';
$i=0;
foreach($users as $us)
{
echo '<tr bgcolor="#FFFFFF">
<td>'
.$us['SOCIETA'].
'</td>
<td>'
.$us['EMAIL'].
'</td>
<td>'
.$us['DATAITA'].
'</td>
<td>
<input type="image" name="esplora" value="'.$i.'" src="pictures/esplora.gif">
<input type="hidden" name="idSoc['.$i.']" value="'.$us['NICK'].'">
</td>
</tr> ';
$i++;
}
echo ' </table>
<input type="hidden" name="tipo" value="list">
</form>';
}
Il problema sta nel fatto che se lo eseguo con FireFox $_POST['esplora'] viene impostato, se lo apro con IE questo non avviene ed il codice dello script non viene eseguito in quento isset($_POST['esplora']) da false, poichè non viene impostato...perchè?Codice PHP:
if ( isset($_POST['esplora']) )
{
$utente=getUser($_POST['idSoc'][$_POST['esplora']]);
$permessi=getUserPermission($utente['NICK']);
}
colpa di <input type="image" name="esplora" value="'.$i.'" src="pictures/esplora.gif">?