help with javascript and magic quotes
Posted: Mon Jul 13, 2009 7:41 pm
at this point I can not get my host to turn off "magic_quotes_runtime" or "magic_quotes_sybase" for some reason.
now I have a site that with every javascript call it adds and extra ' which I am told is due to the magic quotes.
I found a post saying you could turn them off with .htaccess but when I tried I get a 500 server error.
Is there anything else I can do? how to rewrite the following code?
that ends up adding an extra ' like this
javascript:bookmark(''PHPizabi'', ''http://www.mysite.com/directory'')
and causes an error
now I have a site that with every javascript call it adds and extra ' which I am told is due to the magic quotes.
I found a post saying you could turn them off with .htaccess but when I tried I get a 500 server error.
Is there anything else I can do? how to rewrite the following code?
Code: Select all
<td><a href="Javascript:bookmark('{siteName}', '{siteURL}')" class="footerColorSet1">Bookmark us </a></td>javascript:bookmark(''PHPizabi'', ''http://www.mysite.com/directory'')
and causes an error