loc adlı üyeden alıntı:
mesajı görüntüle
Javascript kodları içinde php kodu yazınca hata alıyorum.
10
●1.592
- 16-11-2012, 04:45:51Üyeliği durdurulduolası bir hatadeğişken içersinde tırnakvardır ve yazm hatası oluşuyordur. adslashes fonksiyonunu deneyin
<script type="text/javascript"">
if (eski_ie == 1 ){document.write("<div class=\"wbrowserbox\"><b><?php echo addslashes($lang_oldbrowser); ?></b><p><?php echo addslashes($lang_updatebrowser); ?></p><p><a href=\"http://www.microsoft.com/windows/internet-explorer/default.aspx\" title=\"Internet Explorer\"><img src=\"templates/img/ie.png\" width=\"24\" height=\"24\" alt=\"Internet Explorer\" /></a><a style=\"margin-left:10px\" href=\"http://www.opera.com/download/\" title=\"Opera\"><img src=\"templates/img/opera.png\" width=\"24\" height=\"24\" alt=\"Opera\" /></a><a style=\"margin-left:10px\" href=\"http://www.mozilla-europe.org/tr/firefox/\" title=\"Firefox\"><img src=\"templates/img/firefox.png\" width=\"24\" height=\"24\" alt=\"Firefox\" /></a><a style=\"margin-left:10px\" href=\"http://www.google.com/chrome\" title=\"Chrome\"><img src=\"templates/img/chrome.png\" width=\"24\" height=\"24\" alt=\"Chrome\" /></a><a style=\"margin-left:10px\" href=\"http://www.apple.com/safari/download/\" title=\"Safari\"><img src=\"templates/img/safari.png\" width=\"24\" height=\"24\" alt=\"Safari\" /></a></p></div>");}
</script>