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/14/06 15:22

Does anyone have experience using a shared memory block (the schmop
extension) for this?

I presume with "GET", each key=value pair needs to be sent
individually, which, for a large array would make the URL quite long.
Is there a limit for the length of a URL? It seems impractical to send
a very long one.

Regarding using sessions for this, I presume one can use a while or for
each loop to set the $_SESSION array. Another advantage of the session
option is that it creates a "sticky form" for the user.

--Kenoli

J.O. Aho wrote:
> aaron.reese@tiscali.co.uk wrote:
> > or append the variables to the end of the href URL as
> > www.callthispage.co.uk/callthispage.html?variable1=999&variable2=XYZ
> >
> > You can then strip them off in the receiving page using $HTTP_GET_VARS
> > and use them in the same way as you would $_POST values.
>
> You should always use $_GET over $HTTP_GET_VARS, which is deprecated and will
> with release of PHP 6 be gone for good (PHP 5 can enable this, but default
> turned off).
>
>
> //Aho

 

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

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