Name: Anonymous 2011-05-03 10:50
I really hope you guys can help me on this.
To put it simple: in JavaScript there is a simple way to put the HTML inside a div (assuming the id of the div is "content") into a variable.
var string = document.getElementById("content").innerHTML;
Now I want to do the same thing with PHP.
$string = ???
I tried google, but it didn't give me anything of use.
Does anyone know a solution for this?
To put it simple: in JavaScript there is a simple way to put the HTML inside a div (assuming the id of the div is "content") into a variable.
var string = document.getElementById("content").innerHTML;
Now I want to do the same thing with PHP.
$string = ???
I tried google, but it didn't give me anything of use.
Does anyone know a solution for this?