juicy wrote:[color=blue]
> Fletch wrote:
>[color=green]
>>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[/color]
>
>[color=green]
>><script language = "javascript">
>>function getS (id){
>>var output = "";
>>if (document.getElementById("id").checked)
>>{
>> output = output + testing ; // <- error >testing is not a variable.
>>}}
>></script>[/color]
>
>
> 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.
>
>
>
>
>
>
>[/color]
Looks like a javascript problem to me. Try a javascript newsgroup.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================