bonjour
j'ai ce code qui me permet de scanner le dossier afin d'y effetuer un regex suivant le choix des photos :
<html>
<form action="<?$PHP_SELF;?>" method="post">
choix :
1
2
3
</form>
<?php
if (isset($ok)) {
foreach ($photo as $choix){
$dir = "pix";
if (is_dir($dir)) {
if ($dh = opendir($dir)) { while (($file
readdir($dh)) TRUE) {
if ( preg_match ( "#$choix#", $file)) {
echo '';
}
}
closedir($dh);
}
}
}
}
?>
</html>
mais avec echo ''; je voudrai ke ce soit la frame 3 qui accepte la photo
comment dois ecrire le code pour ce faire merci