Re: PHP: Undefined Variables Error Message
| From: | Jeff - Webmaster | Date: | Thu, 26 Aug 2004 19:44:31 +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-194842@lists.php.net to get a copy of this message | ||
Another website dies on line 4 here:
<?php
$to = "joe@joe.com";
$subject = "Swinos.com Booking Contact - $name";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: swinos.com <admin@swinos.com>\r\n";
$headers .= "Reply-To: ".$name." <".$email.">\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: iCEx Networks HTML-Mailer v1.0";
$subject = stripslashes($subject);
$message = stripslashes($message);
$body = "<font face=Arial size=-1><b>$name</b> has submited a Booking Request. <br><br>
Name: <b>$name</b> <br>
Email address: $email <br>
Phone: $phone <br>
Business Name: $business <br>
Venue: $venue <br><br>
Comments: <br>$comments";
$success = @mail($to,$subject,$body,$headers);
?>
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?