I\'ve setup a parent page that calls a second page for include (with the include function)...
<?
page1 content
include (page2);
more page1 content
?>
The second page is represented as a function that calls itself....
<?
page2($var1...);
function page2 ($var1...) {
code here;
}
?>
The issue I seem to be having is executing a copy function with the second page.
The form and copy are part of the same page2 code...so the form\'s method calls page1 which includes page2, which, if the upload file exists, try\'s to execute the copy function.
I\'m able to execute the same page2 code outside the parent files, but I seem to lose the file when the copy function when it\'s within page1 and the page2 function.
Any thoughts would be greatly appriecated,
T