Hi guys,
I currently have a file upload facility for users. Once they complete the form, the information is passed to send.php.
A number of checks (extension, size etc.) are performed on the users files and then various variables are set to denote error codes.
So by the end of the script I will end up with;
$extensioncheck=1;
$codecheck=0;
$sizecheck=1;
I then need to pass these variables back to the form page, so that the appropriate error messages can be displayed.
I tried using
require 'register.php?ext=$extensioncheck&size=$sizecheck&code=$codecheck';
But it would seem that the require function cannot handle variables, as it simply gives me an error message so no such file exists.
I couldn't find any definitive information on passing variables through include or require and wondered if you guys might be able to help.
Thanks, as always,