Hi,

I've created a php variable based on java.

$java_result = ("<script>
document.write(\"\"+html+\"\");
</script>");

When I execute it outside of the textarea tags, it runs correctly.

<textarea>blah blah blah</textarea><?=$java_result?>

But when I place it inside the textarea tags, it only shows the query, and not the result.

<textarea><?=$java_result?></textarea>

How can I make it produce the result within the textarea tags?

Thanks!

    U want to execute javascript inside textarea?

    Well u cant, I mean u can change the textarea text using javascript but u cant execute javascript inside ...

      That's a bummer. It would be so easy, if I could. Thanks for your help.

        Write a Reply...