How to translate from javascript to php

Hello,

I need some with this simple piece of code:
[code]
function insideTable(sometext)
{
document.getElementById('text_area').innerHTML = sometext;
}
[/code]

[code]

[/code]

How to write exactly the same thing in php? Any ideas?

Thank you.

Comments

  • : Hello,
    :
    : I need some with this simple piece of code:
    : [code]:
    : function insideTable(sometext)
    : {
    : document.getElementById('text_area').innerHTML = sometext;
    : }
    : [/code]:
    :
    : [code]:
    :
    :
    :
    : : :

    :
    : [/code]:
    :
    : How to write exactly the same thing in php? Any ideas?
    :
    : Thank you.
    :
    :
    Here you go:
    [code]

    <?php echo $_GET["text_area"]; ?>
    [/code]
    You need to change the red part to the address of the page.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion