Thanks for the quick reply but i already tried this and it didnt work.
$letterfield = preg_replace("(\r\n¦\n¦\r)", ' ', $letterfield);
All I know is that when the new PHP page is generated using fwrite it wont display. This error comes up - Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\application\files\ertyeu .php on line 41
This is the line it has trouble with...
<?php $letterfield =_ryurtyurtyu_____
rtyurtyur;?>
Now as you can see its giberish, this is because I have been testing the form out with random characters to see if I could break it! It is the linebreak that causes the problem but I cant seem to get rid of it! Any ideas?
Thanks again!