Re: PHP: Undefined Variables Error Message
| From: | John Holmes | Date: | Fri, 27 Aug 2004 00:55:10 +0000 |
| Subject: | Re: PHP: Undefined Variables Error Message | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194860@lists.php.net to get a copy of this message | ||
Jeff - Webmaster wrote:
Removing the "." got rid of most of the errors, but two remain: Notice: Undefined variable: headers in E:\domains\swinos\contact.php on line 4 Notice: Undefined variable: message in E:\domains\swinos\contact.php on line 12 The offending lines are: 4 - $headers = "MIME-Version: 1.0\r\n"; and 12 - $message = stripslashes($message);Line 4 would not produce that message. If $message is undefined, how are you going to stripslashes from it? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com