ok i have this part of script:
onmouseover=\"Tip('$text')\">
the problem is that $text contain some single quotes ( ' ) so it mess up the javascript
i have read somewhere before a way to remove em but i don't remember how :/
help plz?
Put something like this BEFORE outputting your line...
$text = addslashes($text);
Or...
echo 'onmouseover="Tip(\'' . addslashes($text) . '\')">';
thanks a lot!
hey, i live near montreal too! Hi!