I'm transcribing information from .jpg files. I have my form set up, but as it is now, I have to have the photos open in another window to read them, and use a <select> form field to list all the file names using this code:
$files = array();
$dh = opendir($dirname) or die ("Couldn't open directory.");
while (false !== ($filename = readdir($dh))) {
$files[] = $filename;
sort($files);
}
foreach ($files as $option) {
echo "<option>$option</option>\n";
}
It's working fine, but my project has gotten too big for one person, and I'm going to need to have people help me. Also, some of my image directories have thousands of files in them, and it's taking forever to generate the list.
I'm using "header" when the form is submitted to bring up a "clean," new form.
So what I'd like to do is have the image appear on the form page itself, and when the form is submitted, the form is "refreshed" with the next image showing and a clean form to fill out.
It also needs to make sure that there isn't already information entered for that particular image file, but I think I already know how to do that.
I just don't know where to start. Hope this makes sense.