hullo,
i am trying to write the values from a textarea to a file. which is ok, but when the textarea has returns in it, i want to put \r\n in the file so the textarea contents stay on one line.
i.e in the text file i want to have
this is\r\ntwo lines
rather than
this is
two lines
it does the second bydefault when i just do
fwrite($handle, $HTTP_POST_VARS["varname"]);
are there any clever PHP functions i can use to make it write the \r\n or can anyone suggest how to do this?
thanks for your help