PHP new lines in CodeIgniter controller -


can see error following line of code codeigniter controller script - it's part of email script.

the "\n" not appear new lines in email - "\n" raw code itself:

$this->email->message($_post['name']          . " \n" . $_post['email'] . " \n" . $_post['message']); 

they enclosed in double-quotes, don't see issue be...

i have done same thing trying (successfully) this:

$msg=" name: ".$this->input->post('name')." email: ".$this->input->post('email')." message: ".$this->input->post('message'); $this->email->message($msg); 

hope helped you. if there problem, comment.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -