user8502591 user8502591 - 6 months ago 51
HTML Question

How to use php echo with a javascript or html function? Or php and html with document.write?

is it possible to use php echo with a JavaScript or html code inside it? Or html or php inside a JavaScript document.write? if you just type it nothing works!

Answer Source

Go here that is a converter! Or for your answer: Use this Code sample:Html to javascript:

<script type="text/javascript">

document.writeln(" <p>This is How!</p> ");


and html to php:

echo "<p>This is How!</p>\n";
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download