Jump to content

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;'";

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.