Hi,
I have some code that adds html to an array, then joins the array using join() and echos the result. Problem is, when I use \n or \r\n it gets printed on the page, instead of formatting the html source.
eg. Adding to array:
$output[] = '<td>\n';
$output[] = '<form action="cart.php" method="POST">\n';
$output[] = '<input type="hidden" name="action" value="add">\n';
etc...
then I join it:
echo join('',$output);
The result is html that actually prints "\n" to the page, and does not create a line break in the html.
I've also tried using "\r\n" with no success. 😕
Any ideas???