Reply to Re: [PHP] Program flow?

Your name:

Reply:


Posted by Richard Lynch on 03/01/05 20:47

rory walsh wrote:
> Hi I have a one simple question that I need to sort out before I
> continue writing any PHP scripts. Every time I call a script are the
> variables reset to the default values? If for example I call action.php
> from a form with a hidden value "test", I set $NUMBER to 5. If I then
> call action.php again from another form with another hidden value which
> means that I do not assign any number to $NUMBER, will $NUMBER now go
> back to being its default value or will it stay at 5? So basically I
> think my question is, each time one runs a script is it the same as
> starting the application all over again? Cheers,
> Rory.

Every single HTTP request for a URL (every page the user clicks on, or
submits a form, or re-loads) is COMPLETELY independent of the other
requests.

The only data/values that will "survive" from script to script are the
ones you explicitly "save" and "transmit" through GET/POST/COOKIE/SESSION
mechanisms.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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