How are you reading you POST variables? You're probably hitting the register globals off change that occurred in PHP for security reasons. Values passed for a POST (or GET) are no longer automatically declared as variables.
You should be accessing your POST variables like $_POST['form_field_name'].


The warning error you are getting just means that you are not accessing an array variable in your foreach declaration, which is probably caused by the register globals off.

If you were using Safari to test your setup, it may have just been Safari accessing it's cache when it shouldn't have. I've had that problem with Safari when I make a change to my machine.

Without seeing the code, I can make any solid points as to what your problem is.


On Aug 17, 2004, at 2:33 PM, Hull, Douglas D wrote:

I recently had a hard-drive go down in which I was running os x 10.2.x. I do not remember exactly what version of mysql, php etc. I had on it. I had a small mysql database with some php code that worked fine. Now that I have my new drive I have put php 4.3.2, phpmyadmin 2.5.7-pl1, and mysql 4.0 (for os x 10.3.4). One error was when trying to connect to server which is my machine in this case. But when I ran that same code using an include, it worked fine. After copying the code from my include file into where the error was it worked fine as well. And yep it was definetly the same code. Also, after hitting my submit, there is no data being passed via my post. It also gives me an Warning: Invalid argument supplied for foreach(). As I said all this code worked fine on my os x 10.2.x.

Any help would be appreciated,
Doug

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



--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

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



Reply via email to