Jump to content

[SOLVED] DebugBar Script error ie6


thosecars82

Recommended Posts

Hello there

I do not know why when I browser www.metatradersoftware.com in the contact section, I get this debtgubar error. However, I only get the error in ei6 and not in firefox. I know the problem is in the code of the recaptcha for hidding the email because when I remove it, then I do not get the error any more. The error appears on a window in ie6 which says:

DebugBar: Script Error

Line: 64

Character: 13

Code: 0

Error Message: Invalid character

URL: http://www.metatradersoftware.com/contact.php?PHPSESSID=5c0f0cb6f69d1ca8055d2f41ebf8f53f

The code which I think is the culprit is:

 

<?php

...

echo "meta<a href='http://mailhide.recaptcha.net/d?k=01UN5BN6AmfGJq3kNUf6ayYw==&c=XBTGqTVN-iSk8Dxug7cyESSfC-y-jo1w6vEh_oxQ6lc='";

echo "onclick = 'window.open(\'http://mailhide.recaptcha.net/d?k=01UN5BN6AmfGJq3kNUf6ayYw==&c=XBTGqTVN-iSk8";

echo "Dxug7cyESSfC-y-jo1w6vEh_oxQ6lc=\', \'\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,";

echo "height=300') return false; title='";

echo _("Reveal this e-mail address");

echo "'>..................................................................</a>@gmail.com";

...

?>

Do you have any idea?

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/107291-solved-debugbar-script-error-ie6/
Share on other sites

when you single-quote a Javascript function call, you must double-quote the parameters, and vice-versa e.g.:

 

echo "onclick = 'window.open(\"http://www.phpfreaks.com\", \"\", \"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300\") return false;'";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.