Hi there,
I'm scripting a small php upload form and i'm having some problems using header(Location).
Basically, I have a page with the upload form on, which then passes the information to a file called "uploader.php", this file contains no HTML, just pure PHP.
I have a series of conditions that must be met in order for the upload to succeed. Should one of the conditions not be met, I use
header("Location: myfile.php?err=1");
"where 1 is the relevant error code", but i'm Just getting a blank page. No errors, nothing.
I removed the "multipart/form-data" from the upload form for debugging, and sure enough it re-directs, but then obviously, the file isn't being uploaded anymore.
Is there a way to use header(); to re-direct a user from a page that handles file uploads? Or a work around at least.
Thanks,
Dave