+ 1
Who can I read JS InnerHTML with PHP?
???
4 ответов
+ 1
Since you don't apply any more details what you're about to do, I'll assume at this point you're not talking about rendering web page here? If we drop the JS and innerHTML it sounds like you are going to do a reader with php to get the textNode of some element in html document?
So in that case the solution can be found here: http://php.net/manual/en/book.dom.php
+ 1
Yeees I can do this witht input type hidden id...
0
You can't. php renders the page before JS has any effect. JS is executed in client side (except node.js which could be used to replace php) php is always handled by the server.
- 1
aaand theres no other way..?