ma************@gmail.com wrote:
$tdsubclass=<<<bumelum
<td><a href="http://www.ygabel.php/$artnr[$arayartnrcounter]"
="" onmouseout="
function onmouseout(event) {
window.status = "Done";
return true;
}
" onmouseover="
function onmouseover(event) {
window.status = "http://www.fup.dk";
return true;
}
"> <!--target="_Self"-->
bumelum;
When I print this the double quotes after Done" and after dk" are
missing???
Think about how you're quoting.
You have onmouseout <double quote to start string>. The double quote
before the word Done closes that quote. I'm surprised you didn't get
any errors with this construct. Does it work if you write a test HTML
page?
Here's a test script that I wrote that seems to fix you're problem:
<?
$artnr = array('testing123');
$arayartnrcounter = 0;
$tdsubclass="
<td><a
href=\"http://www.ygabel.php/$artnr[$arayartnrcounter]\"
=\"\" onmouseout=\"
function onmouseout(event) {
window.status = 'Done';
return true;
}
\" onmouseover=\"
function onmouseover(event) {
window.status = 'http://www.fup.dk';
return true;
}
\"> <!--target=\"_Self\"-->
";
echo '<pre>'.htmlentities($tdsubclass,ENT_QUOTES).'</pre>';
?>
I got rid of the heredoc syntax and just made it into a string with
escaped double quotes and some single quotes.
Ken