Results 1 to 1 of 1

Thread: [RESOLVED] Can I use javascript to set php inside a div?

  1. #1
    Junior Member
    Join Date
    May 12
    Location
    Saskatchewan, Canada
    Posts
    26

    Resolved [RESOLVED] Can I use javascript to set php inside a div?

    Title pretty much says it all.

    I have a div and I was wondering if I could make it update every like 10 seconds.

    I was wondering how I can set PHP in a div if it is possible.

    I know there is
    document.getElementById("php_code"), but can i select the PHP code of a div?




    Figured it out.
    Used innerHTML = '<?php ?>';
    Last edited by Derbstep; Oct 2nd, 2012 at 09:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •