Hello.
I hope you can help me please.
I have a few questions about my mailer below which I hope you can help me on.
The questions are beneath the code:
[code=php]
removed to save your b/width! resolved. π
Question 1.
For the subject of the mail I currently have:
[code=php]$subject = ‘Ticket [ID:’ . $id .’]’;
Should this be:
[code=php]$subject = “Ticket [ID:” . $id .”]”;
?
I was unsure of single or double quotes for this.
Question 2.
Is there a way to look for certain words in the submission from the form, and replace them with something? I.e. if someone wrote ‘tree’ is there a way to put this as ‘dog’ .. this is just an example of course, we are looking to replace denied words.
Question 3.
Is my use of strip_tags and the nl2br ok on the “copy” of the submission on the last echo? It all works, but I don’t know if it’s right!
Question 4.
If you can spot anything that’s wrong, or you’d do differently please let me know! If you see any security issues please let me know also!
Many many thanks in advance!