ho risolto, grazie comunque per l'aiuto!!!
noleggio.php
Codice PHP:
while ($row = mysql_fetch_array($dbResult))
{
echo '
<tr>
<td>' . ucfirst($row['nome']) . '<input type="hidden" name="nomef" /></td>
<td>' . ucfirst($row['genere']) . '</td>
<td>' . ucfirst($row['anno']) . '</td>
<td><input type="checkbox" value="'.$row['idfilm'].'" name="selezionato[]"/></td>';
echo '</tr>';
}
noleggio2.php
Codice PHP:
if (isset($_POST['selezionato']))
{
$select = $_POST['selezionato'];
foreach($select as $id)
{
$query = "SELECT idfilm,nome FROM film WHERE idfilm=$id";
$dbResult = mysql_query($query, $connessione);
while ($campo = mysql_fetch_object($dbResult))
{
echo '<textarea readonly="readonly" style="overflow-x:hidden; resize:none; width:400px; height:22px; line-height:22px">Nome: ', $campo->nome ,'</textarea>
';
}
}
}
else
{
echo "Non hai selezionato nessun film
<a href=\"noleggio.php\">Torna alla lista</a>";
}