|
Posted by juicy on 04/24/06 11:47
Fletch wrote:
>You need to learn about the request resonse >model. php is run to
>produce html(& javascript) which is then sent >to the browser. The
>broser then runs the html (& javascript). So >your code will be
>delivered to the browser as
><script language = "javascript">
>function getS (id){
>var output = "";
>if (document.getElementById("id").checked)
>{
> output = output + testing ; // <- error >testing is not a variable.
>}}
></script>
Sorry, I have mistype the code, it should be
output = output + "<? echo $text; ?>";
if I assign $text a short text, it will OK. But if $text is a paragraph/
multiple line of string, it will occur error on the page.
Please give idea on what has happen..
Thanks.
Navigation:
[Reply to this message]
|