Re: Joining fixed text to a SUBJECT variable
| From: | Lester Caine | Date: | Sat, 02 Mar 2013 11:23:27 +0000 |
| Subject: | Re: Joining fixed text to a SUBJECT variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320353@lists.php.net to get a copy of this message | ||
Michael CALDER wrote:
$Subject = "RVRA Contact Form - ,$MessageSubject"; Can anyone please advise or point me in the right direction for instructions on how to combine the fixed text with the variable $MessageSubject.The quick fix is simply $Subject = "RVRA Contact Form - ".$MessageSubject; but $Subject = "RVRA Contact Form - ,$MessageSubject"; should work, what is the error? ... you don't actually want the ',' $Subject = "RVRA Contact Form - $MessageSubject"; Should work as well -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk