I have a textarea submitting to a php page, and i perform a regular expression check on it. If i put returns into the textarea it gives me errors on the reg check.
how can i stop this so that it allows returns??
//Just get rid of the returns first $mytext = preg_replace("/\r\n/", "", $mytext);