delete lines in file checkboxes
Copy this code and paste it in your HTML
#Datenverarbeitung
if (isset($HTTP_POST_VARS['delete'])) { $inhalt = file('_matrix2.php');
$fp = fopen('_matrix2.php','w');
while (list($inhalt_key,$inhalt_val) = each($inhalt)) { if (!isset($HTTP_POST_VARS['delete'.$inhalt_key])) { }
}
}
#ENDE: Datenverarbeitung
#Datenausgabe
$inhalt = file('_matrix2.php');
echo '<form method="post" action="'.$HTTP_SERVER_VARS['PHP_SELF'].'">';
while (list($inhalt_key,$inhalt_val) = each($inhalt)) { echo $inhalt_val.'<input type="checkbox" name="delete'.$inhalt_key.'"><br>';
}
echo '<input type="submit" name="delete"></form>';
#ENDE: Datenausgabe
Report this snippet