Embedding PHP in JavaScript?

David Olivas

New member
I'm trying to use JavaScript to call a .php file into an html page as an object. Think of it like using JavaScript like an iframe. I've tried everything I can find on the internet but it seems most people are trying to pass information back and forth between js and php. I'm just trying to open a php file in a small html object but through js.
"JR"

I'm not trying to pass any variables, just render the php file in a js object is all. Should be possible since it's really no different than me calling the php file directly, I just need to embedded inside a plain html file. BTW window.location - tried it, simply redirects the page to the php file, need it embedded
 
Back
Top