Hi,

Is it possible to echo something from a php file to a specific div in a different specific html file?If so, can you let me know how to specify where the data should displayed.

e.g.

Code:

$myName="john";

echo '$myName';//but i want to echo to a different page on a certain part of that page.

Regards

Stoney

    Javascript!

    <script type="text/javascript">
    document.getElementById('IDOFDIV').innerHTML = "NEW DIV DATA GOES HERE (HTML IS ACCEPTED)";
    </script>
    

      if you want it to appear in a different file you can use includes, cookies or session variables

        Write a Reply...