Re: [PHP] isset function problem

2003-07-10 Thread Jason Wong
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

Re: [PHP] isset function problem

2003-07-10 Thread sven
... 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 !

Re: [PHP] isset function problem

2003-07-10 Thread Dean E. Weimer
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 :

[PHP] isset function problem

2003-07-10 Thread Denis L. Menezes
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