I am trying to write a function that "captures" the names of .jpeg files from a web form and compare these to the jpeg files that I have stored in my local directory.
Can anyone clue me in? How do I pass the inputs from a HTML form into a sorted array? I know that image filenames are to be stored as strings in char array but I am not sure how to do it.
In a html form
-----------------
Images:
Image1.jpg
Image2.jpg
Image3.jpg
.......
.......
Image?.jpg
----------------
Code:
void scanDirectory(void) / / / / / / / / / /
{
char *Images =
field->getValue("Images");
if (Images == NULL) errorTerminate
("No image field found in the form!
\n ");
if(strncmp(Images,"Images", 9)==0)
errorTerminate("Image names
not specified");
else ??
}
D.A.C