newbie: PHP flow ....
| From: | Jean-Christian Imbeault | Date: | Fri, 28 Sep 2001 02:52:47 +0000 |
| Subject: | newbie: PHP flow .... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-69106@lists.php.net to get a copy of this message | ||
Ok, I'm a programmer and I've just started playing around with PHP. Once thing I cannot seem to grasp is what the "flow" of a PHP program is supposed to be.
By this I mean that I find myself thinking that every choice/click I give the user leads him to a different page, hence a different PHP file. But then I see code examples and it looks like every click just reloads the same page but some variable gets passed in and a different part of the page's code gets executed.
The problem I have with my "click, go to another page" mentality is that I find it hard to pass variables from one php file to another. (but I'm a newbie so maybe it's not that hard, but I find sessions variable don't seem to stay around if you changes pages).
The problem I have with "put all the code on one page and just pick which part you want executed" is that it makes it hard for me to see flow-control and worse yet I can't figure out how to control the flow in the first place ^_^
Don't know but I think if I can "grok" this part of PHP then everything else will be easy.
And opinion, suggestions or links to information would be greatly appreciated!
Jc
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp