PHP, over javascript code simple \n
| From: | Louie Miranda | Date: | Fri, 20 Aug 2004 03:10:24 +0000 |
| Subject: | PHP, over javascript code simple \n | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194301@lists.php.net to get a copy of this message | ||
Im having problems. Because my javascript is inside a PHP code.
Now below are 1 line code of a print function that display this on the
html header.
i must put "\n" after the Firstname. But PHP actually reads \n so when
i view it on a browser the js code moves down. Which is wrong, because
it wont work anymore.. what i want is js should use the \n instead. is
there any alternative for \n? so it can display properly on php?
<?php
print("
if (document.rpcjs_louie.ColCustName.value == \"\") { walangfield +=
\"Missing: Firstname\n\"; }
");
?>
--
Louie Miranda
http://www.axishift.com