Gruzin Posted September 4, 2006 Share Posted September 4, 2006 hi guys,I'am trying to add [b]confirm[/b] function to my php echo, but think it's not correct. Please tell me what's wrong with it? Thanks in advance.[code]echo "<a href=".$delete."onClick='return confirm('are u sure?');'>Delete</a>";[/code] Link to comment https://forums.phpfreaks.com/topic/19676-quick-syntax-question/ Share on other sites More sharing options...
wildteen88 Posted September 4, 2006 Share Posted September 4, 2006 Use double quotes:[code]echo "<a href=\"" . $delete . "\" onClick=\"return confirm('are u sure?');\">Delete</a>";[/code] Link to comment https://forums.phpfreaks.com/topic/19676-quick-syntax-question/#findComment-85776 Share on other sites More sharing options...
Gruzin Posted September 4, 2006 Author Share Posted September 4, 2006 Thank you very much ;) Link to comment https://forums.phpfreaks.com/topic/19676-quick-syntax-question/#findComment-85779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.