On Thursday 10 July 2003 21:53, Denis L. Menezes wrote:
> I have the following code :
>
> Quote:
>
> if (isset($SenderEmailAddress)){
> mail($mailTo, $mailSubject, $Message);
> }
>
> Unquote
>
> All I want to do is that , if the $SenderEmailAddress is not entered, the
> mail() function shou
... or:
if(!empty($SenderEmailAddress))
{
...
}
Dean E. Weimer wrote:
> What about the rest of the code? How is this variable defined? I
> have had this happen in some code before, I found that the variable
> was set to "". Try using:
>
> if (isset($SenderEmailAddress) && $SenderEmailAddress !
What about the rest of the code? How is this variable defined? I have
had this happen in some code before, I found that the variable was set to
"". Try using:
if (isset($SenderEmailAddress) && $SenderEmailAddress != "") {
mail($mailTo, $mailSubject, $Message);
}
> I have the following code :
I have the following code :
Quote:
if (isset($SenderEmailAddress)){
mail($mailTo, $mailSubject, $Message);
}
Unquote
All I want to do is that , if the $SenderEmailAddress is not entered, the
mail() function should not run. However,
if the $senderEmailAddress variable is not set, the err
4 matches
Mail list logo