The following new message has been posted on Phorm Support Forum at <http://www.phorm.com/support/>. *************************************************************************** MESSAGE: (#2736) Re: switching email subjects <http://www.phorm.com/support/?rev=2736> AUTHOR: Holotech DATE: May 26, 2003 at 4:18 p.m. EST Reply To: (#2714) switching email subjects Author: doug Date: May 20, 2003 at 9:53 p.m. EST > It ALWAYS sends as if the variable has been filled, > but then does not actually send the variable. I > $PHORM_referral = ph_DECLARE; > if ($PHORM_referral == "") { > $PHORM_SUBJECT = "Application (no > referrer)"; > } else { > $PHORM_SUBJECT = "Application (referral:" . > $PHORM_referral . ")"; > } From the docs: "What this means to you is that you should avoid having any field name starting with PHORM_ unless it's actually one of Phorm's variables that you're using, or any field name starting with ph_ or xPHORM_." ph_DECLARE is actually a special value that has meaning internally to Phorm. You are assigning this value to $PHORM_referral, then immediately thereafter testing it. Thus $PHORM_referral will never be "" at the point you are testing it. That's why your code fails. Using $PHORM_ variables of your own won't cause you to burn in hell - the reason it's a bad idea is that I occasionally add new $PHORM_ variables, and if I happen to add one that has the same name as one of your form fields, it could cause weird results. Of course, it's doubtful I'll ever use $PHORM_referral, since $PHORM_ variables are all upper case and limited to seven characters (not counting the $PHORM_), but it's the principle of the matter. *************************************************************************** This is an automatically-generated notice. If you'd like to be removed from the mailing list, please visit Phorm Support Forum at <http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx If you wish to respond to this message, please post your response directly to the board. Thank you! ------------------------------------------------- You are receiving this message because you are subscribed to the Phorm mailing list. To send messages to the mailing list, simply send email to phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe from the list by sending email to phorm-request@xxxxxxxxxxxxx with 'unsubscribe' in the SUBJECT field.