test2.php
<?
echo"test <br>";
$a="so include works for stuff like this";
?>
test.php
<?
include'test.php';
echo"Imported part of this string ";
echo $a;
?>
What happens is that the echo statment "test" is printed when test.php is run but the value of the variable $a is not print.
How can I get around that?
Also on a similar topic how can pass a variable/variables from one page to the next by the click of a button, on that same page there are multiple possible values for that variable/variables, which is determine by which button is click. I would be desirable if more than one variables could be passed.
Any Suggestions?