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 Link to comment https://forums.phpfreaks.com/topic/194169-parse-error-format-line-quickie/ 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 Link to comment https://forums.phpfreaks.com/topic/194169-parse-error-format-line-quickie/#findComment-1021614 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>'; Link to comment https://forums.phpfreaks.com/topic/194169-parse-error-format-line-quickie/#findComment-1022175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.