cricher wrote:i now wish to create a bit of coding
that goes into the form that would be a drop down menu box.
It needs to have 2 options: Video, Picture.
Then when u press the upload button it has values
that can be checked and turned into writing.
How would i do this?
You can see my use of a drop-down-menu in a form-select-option
in this little script I published in Forum:
http://phpbuilder.com/board/showpost.php?p=10746873&postcount=1
What my script does, is:
1. scans a folder for files
and
2. puts these filenames into a drop-down-menu
and
3. so any filename can be selected
(If no directory is specified, my script will scan the same folder where script is.)
I use a
<form method="POST">
and the selected file is the value in a select variable name='sfile'
and this is how I get that POSTED value:
// Get selected file, if any
$selfile=isset($POST['sfile'])?$POST['sfile']:'';
I recommend you copy and paste my script, save it
and put it in a folder where you have some files
and make a run of it!
You may call page with script 'index.php' or whatever else 'pagename.php'
and set any subfolder as filedirectory to be scanned.
π
.