You are here: Re: How to transfer the variable to next page? « PHP Programming Language « IT news, forums, messages
Re: How to transfer the variable to next page?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация