hello.
a stupid question - i need to echo this in PHP:
onclick='javascript: document.getElementById("k10").innerHTML ="<iframe src =\"./new.php?subfolder=projects&level=1\" ></iframe>";'
but i already used both ' and " with \" for the javascript, so i don't know how to write the quotes to make sure i'll post exactly this into the page.
thanks!
spent all levels of ' " and \"
Moderator: General Moderators
Re: spent all levels of ' " and \"
Code: Select all
<?php
//some php code
?>onclick='javascript:document.getElementById("k10").innerHTML ="<iframe src =\"./new.php?subfolder=projects&level=1\" ></iframe>";'<?php
// some php code
Re: spent all levels of ' " and \"
i see
will it work when it's inside of a php function? i actually also need to use a variables for ?subfolder=projects&level=1
will it work when it's inside of a php function? i actually also need to use a variables for ?subfolder=projects&level=1
Re: spent all levels of ' " and \"
great! it does work!
i really have learned something now
thanks
i really have learned something now