1quicksi Posted August 6, 2008 Posted August 6, 2008 I am trying to put a new info box on my site and am savy enough to look at other contributions and make it work to fit my needs but I am not good enough to be able to program PHP thus have a parse error when I try to introduce a javascript component. I know enough that it has to do with the parentheses and how each argument is closed but no idea how to do it properly within PHP. Hopefully I used the correct terminology. Any help is appreciated. Thanx $info_box_contents[] = array('align' => 'center', 'text' => '<table border="0" cellpadding="5" cellspacing="0" align="center"><tr><td align="center"><a href="#" onclick="java script:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="https://www.paypal.com/en_US/i/bnr/vertical_solution_PPeCheck.gif" border="0" alt="We Accept"></a><br /><a href="https://www.paypal.com/us/verified/pal=orders%40crawfordperformanceengineering%2ecom" target="_blank"><img src="http://www.paypal.com/en_US/i/icon/verification_seal.gif" border="0" height="100" width="100" alt="Official PayPal Seal"></a></td></tr></table>'); knowledge base | Contributions | Search
sLaV- Posted August 6, 2008 Posted August 6, 2008 this should work $info_box_contents[] = array('align' => 'center', 'text' => '<table border="0" cellpadding="5" cellspacing="0" align="center"><tr><td align="center"><a href="#" onclick=\'java script:window.open("https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside","olcwhatispaypal","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350");\'><img src="https://www.paypal.com/en_US/i/bnr/vertical_solution_PPeCheck.gif" border="0" alt="We Accept"></a><br /><a href="https://www.paypal.com/us/verified/pal=orders%40crawfordperformanceengineering%2ecom" target="_blank"><img src="http://www.paypal.com/en_US/i/icon/verification_seal.gif" border="0" height="100" width="100" alt="Official PayPal Seal"></a></td></tr></table>');
1quicksi Posted August 6, 2008 Author Posted August 6, 2008 WoW, ultra fast reply :) Works perfectly. Thank you!!! knowledge base | Contributions | Search
Recommended Posts
Archived
This topic is now archived and is closed to further replies.