Posted by Jerim on 08/15/07 13:17
I have a PHP script which simply calls another PHP script using
include(). Let's call them website.php and website_include.php, with
website.php simply including website_include.php. I can pass the
variable to website.php fine. Using an echo command, I can see that it
has the complete phrase such as "Permission Denied." When I call the
website_include.php, which is the page that actually does all the
work, the variable has changed to just "Permission." This happens with
any phrase I send. I am using the following syntax to call
website_include.php:
include("http://www.domain.com/website_include.php?variable=$phrase)
Right now, at the top of website.php and website_include.php I have a
$_GET statement to capture the variable. I have tried various
combinations of one page having it and the other not having. Having
the $_GET statement on both pages is the only way it has worked for me
so far. Any help will be greatly appreciated.
[Back to original message]
|