I'm trying to include a php file. I want it to appear in the content portion for that page.If I do this:
<?php
require_once('includes/mycommon.inc');
$hostname = get_drupal_host();
$send = "http://".$hostname."/SuperAdminFunctions/AdminCreate.php";
include($send);
?>

It shows/calls the included file in the content portion of the page, exactly as I'd expect. The problem is that this included file does not appear to have access to my posted variables.If I do this:
<?php
require_once('includes/mycommon.inc');
$send = "SuperAdminFunctions/AdminCreate.php";
include($send);
?>

In this case the included file has access to the posted variables, but it doesn't print any of the drupal page at all, it only shows the code from the included file. This is completely unexpected behavior. I can't even submit the code (since that part of the edit page doesn't show when I do a preview.Why would it not show any of the drupal page when I include the file by path? How can I change this? Is there some code I need to add into my included file?This may just be my ignorance of php, but any help would be much appreciated. I'm quite frustrated.