try echo "<script>alert('$des1')</script>"; On Jul 20, 2009, at 8:00 AM, malayappa2000 wrote: > Hi > > we have the fallowing requierment > > <? > $des='<p><srong>hello</strong></p> > <p><srong>hello</strong></p>'; > //$des1=trim($des); > > //echo $des1; > $str=str_replace (" ", "",$des); > ?> > <script> > alert('<?php echo $des1;?>'); > </script> > > in the above code string is in two lines. we want to print this > string in an alert message. > > but we are not getting the string in alert > if we put the string in single fallowing manner > $des='<p><srong>hello</strong></p><p><srong>hello</strong></p>'; > getting the alert message > > Please provide help how to comnine number of rows in to a single row > > Thanks&Regards > SrinivasPMM > > [Non-text portions of this message have been removed]