I have an error somewhere in this line of code, if I take "by" off the line it works fine.
$msg = 'An Order has just been submitted on CID, Number' . $_POST['orderNumber']'by' .$name;
Can anyone spot my mistake?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would advise you to utilize one of PHPs core language features. PHP supports variable interpolation in double quoted strings. That’s much simpler than the cumbersome string concatenation:
Note that as special exception no array key quotes are to be used there for simple arrays. (Other examples see the manual http://php.net/manual/en/book.strings.php)
Also note that you should actually escape (see
htmlspecialchars) incoming $_POST or $_GET variables, if they are to be used for output again.