Re: Associative Array Disappears Inside Program

From: Date: Wed, 30 Apr 2003 17:29:14 +0000
Subject: Re: Associative Array Disappears Inside Program
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-145825@lists.php.net to get a copy of this message
> You have to remember that HTTP is stateless. You need to to pass the value of > $database_array[courses] onto the 3rd stage. The preferred method in this > case would be to use a hidden value in your form. I was trying to cut the preverbial fat hog in the a$$ by using an array. I thought that it would remember the array's value through and through each time the program was called. So long as I never set it to 0 or " ". The working version of the program does use a hidden value. My bad. Incidently, the other day I had a post about creating an array while creating the boxes based on the number of courses. You had responded with a snippet of code that I believe used $_POST in it. Then I wrote back and said I couldn't get it to work. To which you replied about Globals being on and server settings and the such. Turns out, my host advertises PHP 4.2.3 but the particular server that my domain rests on is running 4.0.3 (go figure). So I guess that explains that.... Thank you for your time and help, Roger

« previous php.general (#145825) next »