You are here: Re: Passing a variable between pages or scripts « All PHP « IT news, forums, messages
Re: Passing a variable between pages or scripts

Posted by kenoli on 11/13/06 13:37

Thanks, of course.

--Kenoli

wesley@ispace.co.za wrote:
> kenoli wrote:
> > What's the best way to pass an array or variable between pages or
> > scripts on different pages? For instance, I have tried to separate out
> > my html from my process scripts so that I can edit and stylel the html
> > pages more easily and so that I can keep all my scripts and functions
> > together where it is easy to find them.
> >
> > This results in my creating some variables which I then need to pass to
> > one of the html pages to provide content for those pages. I'm not sure
> > what the proper approach is to making these variables accessible on
> > those pages.
> >
> > I know making them global variables achieves this goal, though I always
> > hear, "Don't make variables global!"
> >
> > --Kenoli
>
> Hi
>
> I know of two ways to achieve this, you could use a form and place the
> values into a textfield and read it off from the next page. I would not
> recommend doing that.
>
> The next way is to use session control. The vaiables from the first
> page will be able to be view on the next page with ease.
>
> For more info visit http://www.tizag.com/phpT/phpsessions.php
>
> Wes

 

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

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