I have:

$goalString = "<p align=left>Goals Entered By ".$mymanager."</p><p>On
".$when.":</p><p align=left>".$mygoal."</p>";

Which outputs in this <A> tag:

<a href="#" onmouseover="applyDMXTooltip(this,'<?php echo $goalString;

But if there are double or single quotes in any of the $goalString, it
messes up the output.

I know this is a simple fix, but I'm not sure how to fix it since I'm
new to PHP...

I've tried addslashes, etc - but can't get it to work right...

Is there an easy way to escape ALL special characters that would cause
this output to fail?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to