I have a form with a textarea field.
Everything is ok until the user submitting the form adds returns characters.
When return characters are added I get this error
Warning: Header may not contain more than a single header, new line detected
This was my original code
$action = 'report_pub.php?report_pubaccess=' . $id . '&pub_access=' . $_soft_id;
Line A. header('Location:' . $_action);
I should be able to fix this using the following.
$headers = "Content-type: text/html; charset=utf-8\r\n";
$headers .= "Content-Transfer-Encoding: 8bit";
Can someone tell what syntax I should use to concatinate Line A onto Line B or vice versa!
Line B. header($headers);