OK, so I'm stumped. I'm working on some older PHP code that works fine, just adapting it to a new function. Part of the form uses a file input:
print("<input type=\"hidden\" name=\"old_image\" value=\"$old_image\"></td>\n");
Once the user hits the submit button:
print("<input type=\"submit\" name=\"action\" value=\"Modify Author\">\n");
Two new variables are available and populated with correct values: $image_size and $image_name.
Here's the problem: I have been through our entire site several times and can find no where that these values are populated by our code. We also never call getimagesize().
Any ideas what is populating these fields? I've put in debug statements and they get stuffed after the form is reloaded, totally outside of the code.
I tried using the same variables in another piece of similar code and they DID NOT get populated. ARGH!
I know I can do this via getimagesize(), but I'm trying to understand why it works now.
Thanks!