|
Posted by Paul Lautman on 05/21/06 15:03
Erwin Moller wrote:
> 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
Or if doing a post, you can store it in a hidden input field.
Navigation:
[Reply to this message]
|