Forum Moderators: coopster
Here is an example :
--------------------------------------
a.php
<?
echo " <a herf=c.php?value=10>Click</a>";
?>
--------------------------------------
b.php
<?
echo $value;
echo "this is b.php";
?>
--------------------------------------
c.php
<?
$value = $_GET[value];
echo $value; //to comfirm that we GET the value. and of course, the variable comes to this point.
include "b.php";
?>
---------------------------------------
Let say I click the link on a.php then the result is below
--------------------
10
this is b.php
--------------------
I can NOT use the value within the included file(b.php). Is there any way to get it? I tried <? global $value;> and it didn't work. Some may say "What the hack are you talking about?" I know this works for lots of people but it obviously doesn't work for me.
I use Win XP home, Apache 1.3.29, zend egine 1.3.0, zend optimizer 2.5.1, php 4.3.4. If those codes works for you please let me know your server's versions.