+ 1

Who can I read JS InnerHTML with PHP?

???

23rd Jan 2017, 9:30 PM
Claas Leo
Claas Leo - avatar
4 Respostas
+ 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
26th Jan 2017, 6:39 AM
Jani Sinkkonen
Jani Sinkkonen - avatar
+ 1
Yeees I can do this witht input type hidden id...
26th Jan 2017, 4:32 PM
Claas Leo
Claas Leo - avatar
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.
24th Jan 2017, 6:50 AM
Jani Sinkkonen
Jani Sinkkonen - avatar
- 1
aaand theres no other way..?
25th Jan 2017, 9:46 PM
Claas Leo
Claas Leo - avatar