Jump to content

[SOLVED] innerHTML with PHP code.


iPixel

Recommended Posts

Any idea why this doesnt work and how i can make it work ?

 

document.getElementById("boxcontent_Optum").innerHTML = "<?php include_once('addnewemployee.php'); ?>";

 

if i were to replace the

<?php include_once('addnewemployee.php'); ?>

part with just text "Here's some text" it works, so my assumption is it doesnt really like the php?

 

Thanks for the help.

Link to comment
https://forums.phpfreaks.com/topic/155208-solved-innerhtml-with-php-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.