Saving state script

From: Date: Tue, 18 May 2004 03:10:07 +0000
Subject: Saving state script
Groups: php.general 
Request: Send a blank email to php-general+get-186444@lists.php.net to get a copy of this message
I've been going through Julie Meloni's book on PHP/MySQL/Apache as well as Matt Zandstra's book on PHP. They both have a small script on using hidden form fields to save state. I had no trouble with the rest of the book (so far) but this one gave me much trouble. It's one of those "guess the number" scripts and that part worked just fine. But the counter part would not update, no matter how I tweaked. It would start out at 0, and when the form was submitted the first time, it would up to one as expected. Then, no more updating. It would get to 1 and stop. I tried the script in Julie's book, as well as the one in Matt's book (they are slightly different, tho basically the same). I have Apache and PHP set up locally, and they are running just fine. I am on Win98SE, but only use it for development and testing. After spending all day working on it, I uploaded it to another server, and the darn think worked like a charm. I can't figure out what the difference is. My local setup is Win98SE, Apache 2.0.49 and PHP 4.3.6. The remote server is Linux 2.4.20, Apache 1.3.29, and PHP 4.3.3. Matt's version of the script is at: http://www.samspublishing.com/articles/article.asp?p=29587&seqNum=7 If anyone has any clues to this mystery, it would be a help. Thanks, Joyce.

« previous php.general (#186444) next »