defined
| From: | sub at drewpydraws dot com | Date: | Sat, 25 Feb 2006 22:18:56 +0000 |
| Subject: | defined | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-231067@lists.php.net to get a copy of this message | ||
I'm having kind of a weird problem I want $MailSubject to contain a the value
"prayer" unless I tell it other wise.
// on a form processor.
$MailSubject = "Praise";
include_once("mailit.php");
// then in mailit.php
include "form2mail.php";
// and in formtomail.php
if(!defined($MailSubject)) // This is the problem line
{
$MailSubject = "Prayer";
}
The problem I believe is with the defined function check. (I think) the value of $MailSubject is
maintained to the end so I'm don't think it to be a scope issue, but also, if I don't
assign a value to it it should be running the if() statement, but it's not.
Any thoughts?
~Drew
www.drewpydraws.com