MyBB Community Forums

Full Version: Whats
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Whats wrong in this code:

$post['msndet'] = "<a href="javascript:;"onclick="MyBB.popupWindow(\'misc.php?action=imcenter&amp;imtype=msn&amp;uid={$post[\'uid\']}\', \'imcenter\', 450, 300);">{$post[\'msn\']}<img src="images/msn.gif"></a><br />";
Escape the double quotes inside the string
this is a if else statement and the first don't need quoted and where is the wrong thing show text please.
Decepti0n Wrote:Escape the double quotes inside the string

In other words:
$post['msndet'] = "<a href=\"javascript:onclick='MyBB.popupWindow(\\'misc.php?action=imcenter&amp;imtype=msn&amp;uid={$post['uid']}\\', \\'imcenter\\', 450, 300);\">{$post['msn']}<img src=\"images/msn.gif\"></a><br />";