Reply to Re: help needed - passing values between two loads of the same page

Your name:

Reply:


Posted by Jerry Stuckle on 09/21/05 00:28

Joseph S. wrote:
> Hi,
> How do I pass a string from one call to a php block to another call in
> the
> same page but from another form?
>
> Here's my full php code:
>

<code snipped>

>
> How do I get the value I stored into $s in case '1', when execution
> moves to case '2'?
>
> Any help is greatly appreciated.
> Thanks in advance.
> Joseph S.
>

How about placing it in the $_SESSION array? Start the session at the
beginning of the page and store $s in $_SESSION['s']. Then pull it out
on the second call. (Be sure to clear $_SESSION['s'] on first call to
the page).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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