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.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.686 / Virus Database: 447 - Release Date: 05/14/04

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to