[PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread Michael CALDER
-- G'day , I have a basically simple problem the solution to which has eluded me for several days. I have a form being handled by a .php file. I want the received email sent by the form to have as its SUBJECT the combination of the form name "RVRA Contact Form - " and the MESSAGE SUBJECT as ch

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;

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 fi

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 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 have a few other comments.

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 t

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 < should be: $Body = < AND... it should have 3 <<< instead of 2 << http://www.php.net/manual/en/language.types.string.php \ #language.types.string.syntax.heredoc -- Jim Lucas -- PHP General Maili