Aaron,
I copied your code to a test file called test.php and created the following pages as dummy includes:
verify_faculty_info.php, functions.php and accesscontrol.php
in functions.php, I created a dummy search function:
function search(){
return "Found!<BR>";
}


in verify_faculty_info.php, I made a call to the search function thusly:
echo search();

the test page, when called with the action=verify outputs the following:
verifying nowFound!
Found!

If you are not getting the output you are expecting, it probably isn't because of a function not being available, but more like variables are not available to the function.
Are you getting any error messages at all?


Keith

At 08:31 AM 6/21/2004, Aaron Axelsen wrote:
Below is the chunk of code i am using.  In the verify_faculty_info.php
file i call the search function.  The search function is coded in the
function.php file which is included in the accesscontrol.php.

I thought that it would carry over to the verify_Faculty_info.php file.
Was I mistaken?

Thanks

<?php
include('accesscontrol.php');
if (isset($_GET['action'])){

  if ($_GET['action'] == "add" && $_SESSION['role'] == 1) {
    include('includes/add_product.php');
  } elseif ($_GET['action'] == "verify") {
        echo "verifying now";
        search();
        include('includes/verify_faculty_info.php');
  } else {
    echo "action asked for is not specified";
  }
} else {
   echo "action is not specified";
}
?>


-- Aaron Axelsen aim: aaak2 email: [EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to