Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Lester Caine
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

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Maciek Sokolewicz
On 2-3-2013 12:23, Lester Caine wrote: 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 =

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Jim Giner
On 3/2/2013 7:03 AM, Maciek Sokolewicz wrote: The problem is the simple fact that the variable $MessageSubject is not defined until 4 lines farther into the script. Changing the variable to $_POST['MessageSubject'] (and concatenating using the concatenation operator (the period: '.' )) should

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread tamouse mailing lists
On Sat, Mar 2, 2013 at 5:04 AM, Michael CALDER mikecal...@optusnet.com.au wrote: -- G'day , G'day, cobber! Here is the current contact2.php file - but the SUBJECT only shows as RVRA Contact Form - Others have addressed that, as well as not needing the stripslashes. If you will permit, I

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Michael CALDER
G'day , Thanks to you both I have muddled through. The actual answer was $Subject = RVRA Contact Form - .$_POST['MessageSubject']; I had tried something like that but I used a comma instead of the period. And, yes, I was getting error messages Undefined variable on line 6. etc but was too

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Jim Lucas
On 3/2/2013 11:56 AM, tamouse mailing lists wrote: Ah, crikey, syntax error!! $Body ENDOFMAIL should be: $Body = ENDOFMAIL assignment operator necessary!! AND... it should have 3 instead of 2 http://www.php.net/manual/en/language.types.string.php \