more or less that is my problem:
i'm making HTML <select><option > statement:
if ($dir = @opendir("/the/directory)) {
while($file = readdir($dir)) {
echo '<option value="'.$file. '">'.$file;
}
}
the number of options depends of number of files in directory.
When user chooses one of this files(he chooses an option) i want to know
what option he choosen.
how can i do this?
i'm making HTML <select><option > statement:
if ($dir = @opendir("/the/directory)) {
while($file = readdir($dir)) {
echo '<option value="'.$file. '">'.$file;
}
}
the number of options depends of number of files in directory.
When user chooses one of this files(he chooses an option) i want to know
what option he choosen.
how can i do this?
Comment