herghost Posted March 4, 2010 Share Posted March 4, 2010 Hi all, Whats the correct way to format this line to avoid a parse error? echo '<a href="javascript:ajaxpage(' . 'addcustomer.php', 'body'); . '"><span><img src="images/user_add.gif" /> Add Customer</span></a>'; Thanks Quote Link to comment Share on other sites More sharing options...
teamatomic Posted March 4, 2010 Share Posted March 4, 2010 echo "<a href=\"javascript:ajaxpage('addcustomer.php', 'body');\"><span><img src=\"images/user_add.gif\" /> Add Customer</span></a>"; HTH Teamatomic Quote Link to comment Share on other sites More sharing options...
freakstyle Posted March 6, 2010 Share Posted March 6, 2010 Or: echo '<a href="javascript:ajaxpage(' . \'addcustomer.php\', \'body\'); . '"><span><img src="images/user_add.gif" /> Add Customer</span></a>'; Quote Link to comment 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.