I want to make a checkbox list from a list of files whose content would be variable.
<form method='POST' action='fenetre.php'>
<?php
$list = array_slice(scandir("./repertoire/tmp"), 2);
foreach($list as $fichier){
<input type="checkbox" name="chk[]" value="Selection"> <?php echo $fichier;?><br>
}
?>
</br>
<input type="submit" name="submit" Value="Soumettre">
</form>
But I get the error
Parse error: syntax error, unexpected '<', expecting end of file
Thanks for your help
Aucun commentaire:
Enregistrer un commentaire