thosecars82 Posted May 26, 2008 Share Posted May 26, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/107291-solved-debugbar-script-error-ie6/ Share on other sites More sharing options...
BlueSkyIS Posted May 26, 2008 Share Posted May 26, 2008 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;'"; Quote Link to comment https://forums.phpfreaks.com/topic/107291-solved-debugbar-script-error-ie6/#findComment-550176 Share on other sites More sharing options...
thosecars82 Posted May 26, 2008 Author Share Posted May 26, 2008 Thanks BlueSkyIS for your quick and effective response. Quote Link to comment https://forums.phpfreaks.com/topic/107291-solved-debugbar-script-error-ie6/#findComment-550187 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.