Posted by Exyle on 06/15/05 03:51
It depends on how you're going to be accessing the files. a simple
include() might do, or you can just have your links to the toher file
include the variable:
<a href='b.php?var=<?php echo($var); ?>'>Link</a>
if those methods wont work, then you can use cookies and sessions.
Hendry Taylor wrote:
> If I have a php page that uses the header function to load a second php
> page, how can I access variables defined in the first php page without
> passing them via the url?
[Back to original message]
|