Re: PHP: Undefined Variables Error Message
| From: | Jeff - Webmaster | Date: | Thu, 26 Aug 2004 19:22:53 +0000 |
| Subject: | Re: PHP: Undefined Variables Error Message | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194841@lists.php.net to get a copy of this message | ||
Here is a snippet of the code that is being choked on. The first failure comes from line 6:
<?php
$name = $_POST['name'];
$address = $_POST['address'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$type = $_POST['type'];
$message = $_POST['message'];
The variables are being passed from an html form that calls this script with the post method.
Jeff
At 12:06 PM 8/26/2004, John Holmes wrote:
From: "Jeff - HarborNet" <support@harbornet.com>Sorry, I forgot to also put: and if it is on, show some code that produces the message you're talking about. If it says $var is undefined, where to you define $var or how do you think/feel $var is being defined? I have mind reading turned off for the time being. ---John Holmes...Yes it does show as being on.Hello all. I just finished placing a new server in production and PHP is not working. I am getting undefined variable messages when trying to submit php based forms. Register Globals is on in php.ini, but it still does not work. I have even tried copying a known-good php.ini from another server and the same behavior exists. I am running IIS in Windows 2000. Any ideas?Does the output of phpinfo() show that register_globals is ON?