récupération valeur input
Bonjour,
Je n'arrive pas a récupérer dans une page php une variable, voici la page :
Code:
1 2 3 4
|
$nomHost = $_POST['host'] ;
echo $nomHost; |
Et voici mon formulaire :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<form action="supprimerMachine.php" method="post">
...
<?php
while ($arraySQLAll = mysql_fetch_array($resultatRequeteAllComputer)){
echo "<tr>
<td>".$arraySQLAll['host']."</td>
<td>".$arraySQLAll['MaxProcessTotal']."</td>
<td>".$arraySQLAll['MaxProcessPerComputer']."</td>
<td>".$arraySQLAll['StopALL']."</td>
<td><input type='submit' value='Supprimer machine ".$arraySQLAll['host']."' /><input type='hidden' name='host' value='".$arraySQLAll['host']."' /></td>
</tr>";
}
mysql_close();
?>
</table>
</fieldset>
</form> |
Quand j'arrive sur la page php, je n'obtiens pas la valeur que je devrais, pourquoi ?
Par avance, merci.