Re: PHP, over javascript code simple \n
| From: | aRZed | Date: | Fri, 20 Aug 2004 09:49:10 +0000 |
| Subject: | Re: PHP, over javascript code simple \n | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194311@lists.php.net to get a copy of this message | ||
<?php print(" if (document.rpcjs_louie.ColCustName.value == \"\") { walangfield += \"Missing: Firstname\n\"; } "); ?>try simply escaping the "\" before the "n" with an additional "\" or in other words: use "\\n" instead of "\n". PHP will interpret "\\" as an "\".