-
Oct 2nd, 2012, 09:31 PM
#1
Junior Member
[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
-
Forum Rules