Re: PHP: Undefined Variables Error Message

From: Date: Thu, 26 Aug 2004 21:32:10 +0000
Subject: Re: PHP: Undefined Variables Error Message
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-194951@lists.php.net to get a copy of this message
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?
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 .= '...'; is equivalent to $headers = $headers . '...'; So it's probably complaining that $headers is not defined when you're trying to append something to it. Change that first ".=" to a "=", like the line above, and see if that doesn't help. ------------------------------------------------------ michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html


« previous php.general (#194951) next »