Couple things:
First, your global variables need quotes in them ie: $_SESSION['user']
Second, I don't think the value of $_SESSION[inhoud] is making it to your second page (start.php) as you are only passing the POST variable, not the session variable.
Try this:
Code:
foreach ($result as $inhoud) {
exec ("netstat -ea | grep $inhoud", $userstatus);
echo $inhoud;
if ( $userstatus == NULL )
{
echo "<font color=\"red\"> Server status offline!</font><br>";
echo "<form action='start.php' method='post'>";
echo "<input type='hidden' value='$inhoud' name='inhoud'>";
echo "<input type='submit' value='Start'>";
echo "</form><br>";
}
then:
Code:
<? session_start();
// give $_SESSION['inhoud'] a value here, as it is not being
// passed along with your POST data
$_SESSION['inhoud'] = $_POST['inhoud'];
echo $_SESSION['user']; // is admin
echo "<br>";
echo $_SESSION['inhoud'];
echo "<br>";
HTH