|
Posted by Erwin Moller on 05/20/06 16:48
Alex Murphy wrote:
> The first page have the pre-define variable. How to transfer to next
> php page?
> Thanks
Hi Alex,
You can do so in different ways.
If you make a link to the next page, you can pass it via the URL:
http://www.mysite.com/nextpage.php?myvar=23
You can also store the variable in a session.
Look up SESSION at www.php.net to get started.
($_SESSION[] is per-user.)
You can also store the variable somewhere on a database or in a file.
What is the best way completely depends on what you are trying to achieve,
but you didn't tell us a lot.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|